/* Legal pages (/privacy, /terms, /sms-consent): the marketing menu page's look, as plain static pages. */
@font-face{font-family:Poppins;font-weight:400;font-display:swap;src:url(assets/fonts/poppins-latin-400-normal.woff2) format('woff2')}
@font-face{font-family:Poppins;font-weight:500;font-display:swap;src:url(assets/fonts/poppins-latin-500-normal.woff2) format('woff2')}
@font-face{font-family:Poppins;font-weight:600;font-display:swap;src:url(assets/fonts/poppins-latin-600-normal.woff2) format('woff2')}
/* Tokens taken from the marketing menu page (directory.css). */
:root{--dp:#381f83;--ink:#2c2636;--body:#4f4459;--muted:#766c7f;--soft:#8b7b99;--dl:#51425f1c;--sheet:#f8f6fa;--card:#fff;--line:#e8e1ef;--tint:#e9e2f2;--pad:40px}
*{box-sizing:border-box}
html,body{height:100%;overflow:hidden;overscroll-behavior:none}
/* The one scroll area (as in the Transact and Connect shells): no elastic bounce, and the fixed header sits outside it. */
.page-scroll{position:fixed;inset:0;overflow-y:auto;overscroll-behavior:none;scroll-behavior:smooth;scroll-padding-top:108px}
@media(prefers-reduced-motion:reduce){.page-scroll{scroll-behavior:auto}}
body{margin:0;background:var(--sheet);color:var(--ink);font-family:Poppins,ui-sans-serif,system-ui,sans-serif;-webkit-font-smoothing:antialiased}
a{color:inherit}
:focus-visible{outline:2px solid #bca0d6;outline-offset:2px;border-radius:4px}

/* Header: the menu page's frosted bar, with the wordmark and two plain actions. */
.legal-header{position:fixed;top:0;left:0;right:0;z-index:10;display:flex;align-items:center;gap:24px;height:84px;padding:0 var(--pad);border-bottom:1px solid #51425f14;background:#faf8fc8c;backdrop-filter:blur(24px) saturate(1.8);-webkit-backdrop-filter:blur(24px) saturate(1.8);box-shadow:inset 0 1px 0 #ffffffb3}
.legal-header .brand img{display:block;width:156px;height:auto;filter:brightness(0) saturate(100%) invert(15%) sepia(50%) saturate(2350%) hue-rotate(239deg) brightness(87%) contrast(103%)}
.legal-header nav{margin-left:auto;display:flex;align-items:center;gap:6px}
.legal-header nav>a{display:inline-flex;align-items:center;gap:8px;padding:10px 16px;border-radius:999px;font-size:14px;font-weight:450;color:var(--muted);text-decoration:none;white-space:nowrap;transition:background .2s,color .2s}
.legal-header nav>a:hover{background:#eee8f4;color:var(--dp)}
.chev{width:7px;height:7px;border-left:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);margin-left:2px}

/* Page: intro and contents on the left (pinned), the policy in the reading card on the right. */
.legal{width:100%;max-width:1240px;margin:0 auto;padding:148px var(--pad) 0;display:grid;grid-template-columns:300px minmax(0,1fr);gap:72px;align-items:start}
/* Pinned exactly where it starts (the page padding-top), so it never moves. */
.legal-aside{position:sticky;top:148px;max-height:calc(100dvh - 172px);display:flex;flex-direction:column}
/* The contents list takes the remaining height and scrolls on its own, so the column never outgrows the window. */
.toc{flex:1 1 auto;min-height:0;overflow-y:auto;scrollbar-width:thin}
.eyebrow{margin:0 0 18px;font-size:11px;font-weight:500;letter-spacing:1.2px;text-transform:uppercase;color:#8b7b99}
.legal-aside h1{margin:0;font-size:52px;line-height:1.04;font-weight:500;letter-spacing:-2px;color:var(--ink)}
.legal-aside h1.is-long{font-size:42px;letter-spacing:-1.6px}
.updated{margin:20px 0 0;font-size:14px;color:var(--muted)}
.updated b{font-weight:500;color:var(--ink)}
.toc{margin-top:40px;padding-top:28px;border-top:1px solid var(--line)}
.toc summary{list-style:none;cursor:pointer}
.toc summary::-webkit-details-marker{display:none}
.toc ol{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:2px}
.toc a{display:grid;grid-template-columns:30px 1fr;gap:6px;padding:7px 12px 7px 10px;border-radius:10px;font-size:13px;line-height:1.45;color:var(--muted);text-decoration:none;transition:background .2s,color .2s}
.toc a:hover{background:#eee8f4;color:var(--dp)}
.toc a[aria-current=true]{background:var(--tint);color:var(--dp);font-weight:500}
.toc-num{color:var(--soft);font-variant-numeric:tabular-nums}
.toc a[aria-current=true] .toc-num{color:var(--dp)}

.legal-card{background:var(--card);border:1px solid var(--line);border-radius:22px;padding:56px 64px;box-shadow:0 1px 0 #fff inset,0 18px 40px -28px #3c218633}
.legal-card section{max-width:70ch}
.legal-card section+section{margin-top:44px;padding-top:44px;border-top:1px solid var(--line)}
.legal-card h2{margin:0 0 16px;font-size:24px;line-height:1.3;font-weight:500;letter-spacing:-.5px;color:var(--ink)}
.legal-card h3{margin:28px 0 8px;font-size:16px;line-height:1.5;font-weight:500;color:var(--dp)}
.legal-card p,.legal-card li{font-size:16px;line-height:1.75;color:var(--body)}
.legal-card p{margin:0 0 14px}
.legal-card b{font-weight:500;color:var(--ink)}
.legal-card ul{margin:0 0 16px;padding:0;list-style:none;display:flex;flex-direction:column;gap:8px}
.legal-card li{position:relative;padding-left:22px}
.legal-card li:before{content:'';position:absolute;left:4px;top:.72em;width:6px;height:6px;border-radius:50%;background:#bca0d6}
.legal-card a{color:var(--dp);text-decoration:underline;text-decoration-color:#bca0d6;text-underline-offset:3px}
.legal-card a:hover{text-decoration-color:currentColor}
.legal-card code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.86em;padding:2px 6px;border-radius:6px;background:#f2edf7;color:var(--dp);word-break:break-word}
.legal-card .sms-sample{max-width:56ch;margin:0 0 14px;padding:16px 20px;border-radius:18px 18px 18px 6px;background:#f2edf7;border:1px solid #e6dcef}
.legal-card .sms-sample b{display:inline-block;margin-bottom:4px;font-size:13px;font-weight:500;color:var(--dp)}
.legal-card .contact-info{margin-top:8px;padding:20px 24px;border-radius:14px;background:var(--sheet);border:1px solid var(--line)}

/* Footer: same markup and look as the menu page footer, including the design credit. */
.directory-footer{margin-top:56px;border-top:1px solid var(--dl);padding:28px 0 38px}
.footer-top,.footer-bottom{display:flex;justify-content:space-between;align-items:center;gap:25px}
.back-to-house{font-size:15px;color:#8c759a;text-decoration:none}
.directory-footer nav{display:flex;align-items:center;gap:22px;flex-wrap:wrap}
.directory-footer a{font-size:14px;color:#7c688b;text-decoration:none}
.directory-footer a:hover{color:var(--dp)}
.footer-bottom{margin-top:35px}
.footer-bottom small,.footer-bottom a{font-size:12px;color:#94839f}
.footer-bottom nav a[aria-current=page]{color:var(--dp)}
.footer-credit{white-space:nowrap}
.footer-bottom .footer-credit a{display:inline;font:inherit;color:inherit;text-decoration:none}
.footer-bottom .footer-credit a:hover,.footer-bottom .footer-credit a:focus-visible{color:inherit;text-decoration:underline}

@media(max-width:1100px){.legal{grid-template-columns:240px minmax(0,1fr);gap:48px}.legal-aside h1{font-size:44px}.legal-card{padding:44px 44px}}
@media(max-width:850px){
 :root{--pad:24px}
 .page-scroll{scroll-padding-top:84px}
 .legal-header{height:68px;padding:0 var(--pad)}.legal-header .brand img{width:132px}
 .legal-header nav>a{padding:10px 10px}
 .legal{display:block;padding:104px var(--pad) 0}
 .legal-aside{position:static;max-height:none;display:block}
 .toc{overflow:visible}
 .legal-aside h1,.legal-aside h1.is-long{font-size:38px;letter-spacing:-1.4px}
 .toc{margin:28px 0 24px;padding:0;border:1px solid var(--line);border-radius:16px;background:var(--card)}
 .toc summary{display:flex;justify-content:space-between;align-items:center;padding:16px 18px;font-size:14px;font-weight:500;color:var(--ink)}
 .toc summary:after{content:'+';color:var(--soft);font-size:18px}
 .toc[open] summary:after{content:'×'}
 .toc ol{max-height:none;padding:0 8px 10px}
 .legal-card{padding:28px 22px;border-radius:18px}
 .legal-card section+section{margin-top:32px;padding-top:32px}
 .legal-card h2{font-size:21px}
 .legal-card p,.legal-card li{font-size:15px}
 .directory-footer{margin-top:40px;padding:30px 0 26px;text-align:center}
 .footer-top,.footer-bottom{flex-direction:column;align-items:center;gap:20px}
 .directory-footer nav{justify-content:center;gap:8px 22px}
 .footer-bottom{border-top:1px solid var(--dl);padding-top:18px;margin-top:24px}
 .footer-bottom nav{order:0}.footer-bottom small{order:1;line-height:1.6}
 .footer-bottom{container:footer-bottom/inline-size}
}
@container footer-bottom (max-width:420px){.footer-credit{display:block}.footer-credit-sep{display:none}}
@media(min-width:851px){.toc summary{display:none}}
/* Phones: the logo already links home (and the footer has "Back to the house"), so the header keeps only Log in. */
@media(max-width:560px){.legal-header nav>a{display:none}}

/* Log in: choose Transact or Connect (as on the home page). A solid menu: glass is only for the nav pill, profile menu and search. */
.login-menu{position:relative}
.login-menu summary{list-style:none;cursor:pointer;display:inline-flex;align-items:center;padding:10px 16px;border-radius:999px;background:var(--dp);color:#fff;font-size:14px;font-weight:500;white-space:nowrap;transition:background .2s}
.login-menu summary::-webkit-details-marker{display:none}
.login-menu summary:hover{background:#4a2aa3}
.login-menu-panel{position:absolute;right:0;top:calc(100% + 8px);width:288px;padding:6px;border-radius:16px;background:#fff;border:1px solid var(--line);box-shadow:0 18px 40px -16px #2c263640}
.login-menu-panel a{display:flex;align-items:center;gap:12px;padding:10px;border-radius:12px;text-decoration:none;color:var(--ink)}
.login-menu-panel a:hover,.login-menu-panel a:focus-visible{background:#f4f0f8}
.login-menu-panel img{width:36px;height:36px;border-radius:9px;flex-shrink:0}
.login-menu-panel strong{display:block;font-size:14px;font-weight:500}
.login-menu-panel small{display:block;font-size:12px;color:var(--muted)}
