.legal-page {
    --legal-ink: #17263d;
    --legal-muted: #627188;
    --legal-blue: #2357d9;
    --legal-mint: #68ddce;
    --legal-gold: #f5c66c;
    --legal-border: #dde6ef;
    color: var(--legal-ink);
    font-family: 'Hind', sans-serif;
    overflow-x: clip;
}
.legal-page * { box-sizing: border-box; }
.legal-page h1, .legal-page h2 { font-family: 'Playfair Display', Georgia, serif; font-weight: 700; }
.legal-page a { text-decoration: none; }
.legal-hero { position: relative; min-height: 460px; padding: 105px 0 120px; overflow: hidden; background: radial-gradient(circle at 82% 22%, rgba(48, 112, 139, .42), transparent 31%), radial-gradient(circle at 9% 100%, rgba(42, 184, 163, .17), transparent 35%), #121f34; }
.legal-hero::after { position: absolute; right: -9%; bottom: -78px; width: 62%; height: 145px; background: #f5f8fc; content: ''; transform: rotate(-4deg); }
.legal-hero-terms { background: radial-gradient(circle at 82% 22%, rgba(54, 91, 151, .43), transparent 31%), radial-gradient(circle at 9% 100%, rgba(194, 141, 48, .13), transparent 35%), #121f34; }
.legal-hero-mark { position: absolute; right: 10%; bottom: 22px; display: grid; width: 285px; height: 285px; place-items: center; color: rgba(255, 255, 255, .055); border: 1px solid rgba(255, 255, 255, .08); border-radius: 50%; font-size: 110px; transform: rotate(-8deg); }
.legal-hero-inner { position: relative; z-index: 1; }
.legal-eyebrow { color: var(--legal-mint); font-size: 11px; font-weight: 800; letter-spacing: .19em; }
.legal-eyebrow i { display: inline-block; width: 8px; height: 8px; margin-right: 9px; border-radius: 50%; background: var(--legal-mint); }
.legal-hero-grid { display: grid; grid-template-columns: 1fr 190px; align-items: end; gap: 8%; margin-top: 20px; }
.legal-hero h1 { margin: 0 0 18px; color: #fff; font-size: clamp(3.4rem, 6vw, 5.6rem); line-height: 1.04; letter-spacing: -.045em; }
.legal-hero h1 em { color: var(--legal-gold); font-weight: 500; }
.legal-hero-grid > div:first-child > p { max-width: 700px; margin: 0; color: #c7d3e1; font-size: 1.1rem; line-height: 1.7; }
.legal-hero-meta { padding: 18px 0 6px 22px; border-left: 1px solid rgba(255, 255, 255, .2); }
.legal-hero-meta span { display: block; color: #92a6bb; font-size: 9px; font-weight: 800; letter-spacing: .16em; }
.legal-hero-meta strong { display: block; margin: 4px 0 1px; color: #fff; font-family: 'Playfair Display', Georgia, serif; font-size: 1.35rem; }
.legal-hero-meta small { color: #bdcad8; font-size: 12px; }

.legal-content { padding: 105px 0 110px; background: #f5f8fc; background-image: linear-gradient(rgba(40, 84, 130, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(40, 84, 130, .035) 1px, transparent 1px); background-size: 30px 30px; }
.legal-layout { display: grid; grid-template-columns: 285px minmax(0, 1fr); align-items: start; gap: 6%; }
.legal-sidebar { position: sticky; top: 125px; }
.legal-sidebar-heading { padding-bottom: 15px; border-bottom: 1px solid #d5e0e9; }
.legal-sidebar-heading span { display: block; color: #8392a4; font-size: 9px; font-weight: 800; letter-spacing: .17em; }
.legal-sidebar-heading strong { display: block; margin-top: 4px; font-family: 'Playfair Display', Georgia, serif; font-size: 1.25rem; }
.legal-toc { max-height: min(48vh, 475px); margin: 8px 0 18px; padding-right: 6px; overflow-y: auto; scrollbar-color: #bccbd8 transparent; scrollbar-width: thin; }
.legal-toc a { display: grid; grid-template-columns: 27px 1fr; gap: 9px; padding: 9px 7px; color: #607086; border-radius: 8px; font-size: 12px; line-height: 1.3; transition: color .2s ease, background .2s ease; }
.legal-toc a span { color: #218178; font-size: 9px; font-weight: 800; letter-spacing: .08em; }
.legal-toc a:hover, .legal-toc a.active { color: var(--legal-blue); background: #e9eefc; }
.legal-print { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; padding: 11px 15px; color: #2d425a; border: 1px solid #cedae5; border-radius: 10px; background: #fff; font-family: inherit; font-weight: 700; transition: border-color .2s ease, color .2s ease; }
.legal-print:hover { color: var(--legal-blue); border-color: var(--legal-blue); }
.legal-help { margin-top: 24px; padding: 23px; border-radius: 16px; background: radial-gradient(circle at 90% 8%, #2b5262, transparent 37%), #17263d; }
.legal-help span { color: var(--legal-mint); font-size: 9px; font-weight: 800; letter-spacing: .14em; }
.legal-help p { margin: 9px 0 15px; color: #c3d0dd; font-size: 13px; line-height: 1.55; }
.legal-help a { color: #fff; font-size: 13px; font-weight: 700; }
.legal-help a i { margin-left: 8px; color: var(--legal-mint); }

.legal-document { padding: 55px clamp(28px, 5vw, 72px); border: 1px solid #e0e8f0; border-radius: 22px; background: #fff; box-shadow: 0 24px 58px rgba(25, 50, 80, .09); }
.legal-document-header { margin-bottom: 42px; padding-bottom: 36px; border-bottom: 1px solid var(--legal-border); }
.legal-document-header > span { color: #278a82; font-size: 10px; font-weight: 800; letter-spacing: .17em; }
.legal-document-header h2 { max-width: 700px; margin: 12px 0 13px; font-size: clamp(2.25rem, 4vw, 3.65rem); line-height: 1.12; letter-spacing: -.035em; }
.legal-document-header p { max-width: 720px; margin: 0; color: var(--legal-muted); font-size: 1.02rem; line-height: 1.7; }
.legal-introduction { margin: 0 0 35px; padding: 23px 26px; color: #465b73; border-left: 4px solid var(--legal-blue); border-radius: 0 12px 12px 0; background: #f3f6ff; font-size: 1rem; line-height: 1.75; }
.legal-clauses { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; counter-reset: legal-clause; }
.legal-clauses > li { position: relative; margin: 0 !important; padding: 25px 26px 25px 76px; color: #53657a; border: 1px solid #e2e9f0; border-radius: 14px; background: #fcfdff; font-size: .98rem; line-height: 1.72; scroll-margin-top: 125px; counter-increment: legal-clause; }
.legal-clauses > li::before { position: absolute; top: 23px; left: 23px; display: grid; width: 36px; height: 36px; place-items: center; color: #16776f; border-radius: 10px; background: #e0f6f1; content: counter(legal-clause, decimal-leading-zero); font-size: 9px; font-weight: 800; letter-spacing: .05em; }
.legal-clauses > li > strong:first-child { display: block; margin-bottom: 8px; color: var(--legal-ink); font-family: 'Playfair Display', Georgia, serif; font-size: 1.32rem; line-height: 1.25; }
.legal-clauses > li > br:first-of-type { display: none; }
.legal-clauses > li > div { margin: 14px 0 0 !important; padding: 16px 18px; border-radius: 10px; background: #f3f6f9; }
.legal-clauses > li > div strong { color: #263c55; }
.legal-document-footer { display: grid; grid-template-columns: 44px 1fr; align-items: center; gap: 15px; margin-top: 35px; padding: 21px 23px; border-radius: 13px; background: #eef4ff; }
.legal-document-footer > i { display: grid; width: 42px; height: 42px; place-items: center; color: var(--legal-blue); border-radius: 11px; background: #dce6ff; }
.legal-document-footer p { margin: 0; color: #53667d; line-height: 1.55; }
.legal-document-footer strong { color: var(--legal-ink); }
.legal-document-footer a { color: var(--legal-blue); font-weight: 700; }

.legal-related { padding: 0 0 95px; background: #f5f8fc; }
.legal-related-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 48px 5%; border-radius: 22px; background: #1c887f; }
.legal-related span { color: #c9f7ef; font-size: 9px; font-weight: 800; letter-spacing: .16em; }
.legal-related h2 { max-width: 690px; margin: 9px 0 0; color: #fff; font-size: clamp(2rem, 3.4vw, 3.35rem); line-height: 1.15; }
.legal-related a { display: inline-flex; flex: none; align-items: center; gap: 18px; min-height: 50px; padding: 11px 21px; color: #173047; border-radius: 11px; background: #fff; font-weight: 700; transition: transform .2s ease; }
.legal-related a:hover { color: #173047; transform: translateY(-2px); }

@media (max-width: 991.98px) {
    .legal-layout { grid-template-columns: 230px minmax(0, 1fr); gap: 4%; }
    .legal-document { padding: 45px 35px; }
    .legal-clauses > li { padding-left: 68px; }
}

@media (max-width: 767.98px) {
    .legal-hero { min-height: 430px; padding: 75px 0 110px; }
    .legal-hero-grid { grid-template-columns: 1fr; gap: 28px; }
    .legal-hero-meta { max-width: 220px; }
    .legal-hero-mark { right: -80px; width: 240px; height: 240px; }
    .legal-content { padding: 75px 0 85px; }
    .legal-layout { grid-template-columns: 1fr; }
    .legal-sidebar { position: static; margin-bottom: 38px; }
    .legal-toc { display: grid; grid-template-columns: 1fr 1fr; max-height: 240px; padding: 8px; border: 1px solid #dce5ed; border-radius: 13px; background: #fff; }
    .legal-help { display: none; }
    .legal-print { margin-top: 13px; }
    .legal-related-inner { display: block; padding: 39px 30px; }
    .legal-related a { margin-top: 25px; }
}

@media (max-width: 575.98px) {
    .legal-hero { min-height: 410px; padding-top: 58px; }
    .legal-hero h1 { font-size: clamp(2.8rem, 14vw, 4rem); }
    .legal-hero-grid > div:first-child > p { font-size: 1rem; }
    .legal-toc { grid-template-columns: 1fr; }
    .legal-document { padding: 35px 18px; border-radius: 17px; }
    .legal-document-header { margin-bottom: 30px; padding: 0 7px 28px; }
    .legal-document-header h2 { font-size: 2.25rem; }
    .legal-introduction { padding: 19px; }
    .legal-clauses > li { padding: 68px 20px 22px; font-size: .94rem; }
    .legal-clauses > li::before { top: 19px; left: 20px; }
    .legal-clauses > li > strong:first-child { font-size: 1.2rem; }
    .legal-document-footer { grid-template-columns: 1fr; }
    .legal-related { padding-bottom: 65px; }
    .legal-related-inner { padding: 34px 23px; }
}

@media print {
    .floating-island-header, .floating-demo-btn, footer, .legal-hero, .legal-sidebar, .legal-related { display: none !important; }
    .legal-content { padding: 0; background: #fff; }
    .legal-layout { display: block; max-width: none; }
    .legal-document { padding: 0; border: 0; box-shadow: none; }
    .legal-clauses > li { break-inside: avoid; border-color: #ccc; }
}

@media (prefers-reduced-motion: reduce) {
    .legal-page *, .legal-page *::before, .legal-page *::after { scroll-behavior: auto !important; transition: none !important; }
}
