@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

.legal-page { --legal-ink:#0b1f33; --legal-muted:#657184; --legal-blue:#1c5db6; --legal-line:#e4e9f0; --legal-card:#fff; --legal-soft:#eef5fc; margin:0; padding:0; background:#f7f9fc; color:var(--legal-ink); font-family:Inter,sans-serif; -webkit-font-smoothing:antialiased; }
.dark .legal-page { --legal-ink:#eef5ff; --legal-muted:#a8b8cc; --legal-blue:#8bb8ff; --legal-line:#26374c; --legal-card:#101c2b; --legal-soft:#142944; background:#0a1422; }
.legal-container { width:min(1160px,calc(100% - 48px)); margin-inline:auto; }
.legal-header { background:var(--legal-card); border-bottom:1px solid var(--legal-line); }
.legal-header-inner { display:flex; align-items:center; justify-content:space-between; gap:24px; min-height:88px; }
.legal-brand img { width:156px; height:auto; }
.dark .legal-brand { background:#fff; border-radius:12px; padding:8px 12px; }
.legal-back { font-size:12px; font-weight:600; color:var(--legal-muted); }
.legal-back:hover { color:var(--legal-blue); }
.legal-hero { padding-top:56px; }
.legal-eyebrow { font-size:10px; font-weight:800; letter-spacing:.18em; color:var(--legal-blue); }
.legal-hero h1 { margin:18px 0; font-size:clamp(32px,4.3vw,52px); font-weight:800; letter-spacing:-.045em; line-height:1.12; }
.legal-hero > p { max-width:620px; font-size:15px; line-height:1.85; color:var(--legal-muted); }
.legal-meta { display:flex; flex-wrap:wrap; gap:10px; margin-top:24px; font-size:10px; font-weight:600; color:var(--legal-muted); }
.legal-meta span { padding:7px 12px; border:1px solid var(--legal-line); border-radius:30px; background:var(--legal-card); }
.legal-tabs { display:flex; gap:28px; margin-top:36px; border-bottom:1px solid var(--legal-line); }
.legal-tabs a { padding:15px 0; font-size:13px; font-weight:600; color:var(--legal-muted); border-bottom:3px solid transparent; }
.legal-tabs a[aria-current] { color:var(--legal-blue); border-color:var(--legal-blue); }
.legal-grid { display:grid; grid-template-columns:245px minmax(0,1fr); gap:40px; align-items:start; padding:36px 0 48px; }
.legal-sidebar { position:sticky; top:24px; }
.legal-contents h2 { font-size:10px; letter-spacing:.16em; font-weight:800; color:var(--legal-muted); margin:4px 0 16px 12px; }
.legal-contents a { display:flex; gap:12px; padding:11px 12px; font-size:12px; line-height:1.5; border-radius:10px; color:var(--legal-muted); }
.legal-contents a span { flex:0 0 16px; white-space:nowrap; font-size:10px; color:var(--legal-blue); font-weight:700; padding-top:2px; }
.legal-contents a:hover, .legal-contents a:focus-visible { color:var(--legal-blue); background:var(--legal-soft); }
.legal-help { margin-top:24px; padding:24px; border:1px solid var(--legal-line); border-radius:20px; background:var(--legal-card); }
.legal-help h2 { margin:12px 0 8px; font-size:18px; font-weight:700; letter-spacing:-.03em; }
.legal-help p { font-size:12px; line-height:1.8; color:var(--legal-muted); }
.legal-help a { display:block; margin-top:18px; font-size:12px; font-weight:700; color:var(--legal-blue); }
.legal-document { padding:36px 40px; background:var(--legal-card); border:1px solid var(--legal-line); border-radius:24px; box-shadow:0 12px 34px rgba(21,48,79,.04); font-size:13px; line-height:1.95; color:var(--legal-muted); }
.legal-document > p { font-size:15px; color:var(--legal-ink); padding-bottom:28px; }
.legal-document section { border-top:1px solid var(--legal-line); padding-top:28px; margin-top:28px; scroll-margin-top:24px; }
.legal-document section:first-of-type { margin-top:0; }
.legal-document h2 { font-size:17px; font-weight:700; line-height:1.5; letter-spacing:-.02em; color:var(--legal-ink); margin-bottom:16px; }
.legal-document p + p, .legal-document ul + p { margin-top:14px; }
.legal-document ul { padding-left:20px; margin:14px 0; }
.legal-document li + li { margin-top:12px; }
.legal-document li::marker { color:var(--legal-blue); }
.legal-document strong { color:var(--legal-ink); font-weight:600; }
.legal-document a { color:var(--legal-blue); text-decoration:underline; text-underline-offset:3px; }
.legal-contact { display:grid; grid-template-columns:1fr 1fr; gap:48px; background:var(--legal-soft); border:1px solid var(--legal-line); border-radius:24px; padding:36px 40px; scroll-margin-top:24px; }
.legal-contact h2 { font-size:26px; letter-spacing:-.035em; font-weight:700; margin:12px 0; }
.legal-contact p { font-size:12px; line-height:1.8; color:var(--legal-muted); max-width:350px; }
.legal-contact-details { display:flex; flex-direction:column; align-items:flex-start; justify-content:center; gap:10px; min-width:0; }
.legal-contact-details a { color:var(--legal-blue); font-size:14px; font-weight:600; overflow-wrap:anywhere; }
.legal-bottom { padding:24px 0 36px; display:flex; justify-content:space-between; gap:16px; font-size:11px; color:var(--legal-muted); }
.legal-page a:focus-visible, .registration-notice a:focus-visible, .registration-agreements a:focus-visible { outline:2px solid #1c5db6; outline-offset:4px; border-radius:4px; }
.legal-inline-links { display:flex; justify-content:center; flex-wrap:wrap; gap:12px; margin-top:20px; padding-top:16px; border-top:1px solid #e4e9f0; font-size:10px; font-weight:600; color:#657184; }
.legal-inline-links a:hover { color:#1c5db6; text-decoration:underline; text-underline-offset:4px; }
.theme-dark .legal-inline-links { border-color:#26374c; color:#a8b8cc; }
nav[aria-label="Privacy and terms"] a { text-decoration:none; font-weight:500; }
nav[aria-label="Privacy and terms"] a:hover { text-decoration:underline; text-underline-offset:4px; }
.registration-notice { border:1px solid #dce8f6; border-radius:20px; background:linear-gradient(120deg,#eef5fc,#f8fbff); padding:20px; margin-top:18px; }
.registration-notice-heading { display:flex; align-items:center; gap:12px; margin-bottom:12px; }
.registration-notice-icon { display:grid; place-items:center; width:36px; height:36px; flex-shrink:0; background:#fff; color:#1c5db6; border:1px solid #dce8f6; border-radius:12px; }
.registration-notice h4 { font-size:11px; text-transform:uppercase; letter-spacing:.1em; font-weight:800; color:#0b1f33; }
.registration-notice p { font-size:12px; line-height:1.85; color:#657184; }
.registration-notice p + p { margin-top:10px; }
.registration-notice a { color:#1c5db6; font-weight:700; text-underline-offset:3px; }
.registration-notice .registration-notice-foot { border-top:1px solid #dce8f6; padding-top:12px; font-size:11px; }
.registration-agreements { border:1px solid #e4e9f0; border-radius:20px; padding:20px; background:#f7f9fc; }
.registration-agreements > h4 { display:flex; align-items:center; gap:12px; font-size:10px; font-weight:800; letter-spacing:.14em; text-transform:uppercase; color:#657184; margin-bottom:20px; }
.registration-step { display:grid; place-items:center; width:32px; height:32px; border-radius:8px; background:#eef5fc; color:#1c5db6; letter-spacing:0; }
.registration-agreements > label[for] { font-size:10px; font-weight:700; text-transform:uppercase; letter-spacing:.06em; }
.registration-agreements .consent-choice { display:flex; align-items:flex-start; gap:12px; padding:16px; border:1px solid #e4e9f0; border-radius:14px; background:#fff; font-size:12px; line-height:1.85; color:#657184; cursor:pointer; transition:border-color .15s,background .15s; }
.registration-agreements .consent-choice:has(input:checked) { border-color:#8ab2e4; background:#f0f6ff; }
.consent-choice input { margin-top:4px; width:17px; height:17px; accent-color:#1c5db6; flex-shrink:0; }
.consent-choice a { color:#1c5db6; font-weight:700; text-underline-offset:3px; }
.registration-agreements #registration-agreement-help { font-size:11px; line-height:1.8; }
.registration-review-help, .registration-review-version { font-size:12px; line-height:1.8; color:var(--reg-muted,#657184); }
.registration-review { border:1px solid var(--reg-line,#e4e9f0); border-radius:12px; padding:12px; background:var(--reg-surface,#fff); }
.registration-review summary { cursor:pointer; font-size:13px; font-weight:700; color:var(--reg-ink,#0b1f33); }
.registration-review-status { display:block; margin-top:8px; font-size:11px; line-height:1.6; font-weight:600; color:var(--reg-muted,#657184); }
.registration-review-version { margin:12px 0; }
.registration-review-document { height:280px; height:min(280px,45dvh); min-height:140px; overflow-y:auto; overscroll-behavior-y:contain; scrollbar-gutter:stable; padding:14px; border:1px solid var(--reg-line,#e4e9f0); border-radius:8px; color:var(--reg-muted,#657184); font-size:13px; line-height:1.9; overflow-wrap:anywhere; }
.registration-review-document h2 { color:var(--reg-ink,#0b1f33); font-size:14px; font-weight:700; line-height:1.6; margin-bottom:10px; }
.registration-review-document section { margin-top:20px; padding-top:16px; border-top:1px solid var(--reg-line,#e4e9f0); }
.registration-review-document p + p, .registration-review-document ul { margin-top:12px; }
.registration-review-document ul { padding-left:20px; list-style:disc; }
.registration-review-document a { color:#1c5db6; text-decoration:underline; }
.theme-dark .registration-review-document a { color:#8bb8ff; }
.registration-review-end { margin-top:20px; font-weight:700; }
.registration-review summary:focus-visible, .registration-review-document:focus-visible { outline:2px solid #1c5db6; outline-offset:3px; }
.registration-agreements .consent-choice:has(input:disabled) { cursor:not-allowed; border-style:dashed; }
.consent-choice input:disabled { cursor:not-allowed; opacity:.6; }
.theme-dark .registration-notice { background:#10243d; border-color:#28415e; }
.theme-dark .registration-notice-icon, .theme-dark .registration-agreements .consent-choice { background:#101c2b; border-color:#26374c; }
.theme-dark .registration-notice h4 { color:#eef5ff; }
.theme-dark .registration-notice p, .theme-dark .registration-agreements .consent-choice { color:#a8b8cc; }
.theme-dark .registration-notice a, .theme-dark .consent-choice a, .theme-dark .registration-notice-icon { color:#8bb8ff; }
.theme-dark .registration-notice-foot { border-color:#28415e; }
.theme-dark .registration-agreements { background:#0d1928; border-color:#26374c; }
.theme-dark .registration-step { background:#142944; color:#8bb8ff; }
.theme-dark .registration-agreements > h4 { color:#a8b8cc; }
.theme-dark .registration-agreements .consent-choice:has(input:checked) { background:#142944; border-color:#527cac; }
@media (max-width:800px) {
    .legal-container { width:calc(100% - 32px); }
    .legal-header-inner { min-height:76px; gap:16px; }
    .legal-brand img { width:120px; }
    .legal-back { font-size:11px; }
    .legal-hero { padding-top:32px; }
    .legal-hero > p { font-size:13px; }
    .legal-grid { grid-template-columns:1fr; gap:20px; padding-top:24px; }
    .legal-sidebar { position:static; }
    .legal-contents { padding:16px; background:var(--legal-card); border:1px solid var(--legal-line); border-radius:18px; display:grid; grid-template-columns:1fr 1fr; gap:2px; }
    .legal-contents h2 { grid-column:1 / -1; margin:0 0 8px 8px; }
    .legal-contents a { padding:8px; font-size:11px; gap:8px; }
    .legal-help { display:none; }
    .legal-document { padding:24px 20px; border-radius:20px; }
    .legal-document h2 { font-size:16px; }
    .legal-contact { grid-template-columns:1fr; gap:24px; padding:28px 24px; }
    .legal-tabs { gap:22px; }
    .legal-tabs a { font-size:12px; }
    .registration-notice, .registration-agreements { padding:16px; }
    .registration-agreements .consent-choice { padding:12px; }
}
