.legal-page .navbar-nav .nav-link { white-space: nowrap; }

.legal-hero {
    background: radial-gradient(circle at 82% 20%, rgba(255,145,77,.2), transparent 26%), #f7f1f8;
    border-bottom: 1px solid var(--line);
    overflow: hidden;
    padding: 74px 0 78px;
    position: relative;
}

.legal-grid {
    background-image: linear-gradient(rgba(37,29,58,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(37,29,58,.045) 1px, transparent 1px);
    background-size: 58px 58px;
    inset: 0;
    mask-image: linear-gradient(to left, #000, transparent 78%);
    position: absolute;
}

.legal-hero-inner { position: relative; z-index: 1; }
.legal-breadcrumb { align-items: center; color: var(--muted); display: flex; font-size: .76rem; gap: .55rem; margin-bottom: 2rem; }
.legal-breadcrumb a { font-weight: 700; }
.legal-breadcrumb a:hover { color: var(--brand-strong); }
.legal-breadcrumb i { font-size: .58rem; }
.legal-hero .eyebrow { color: var(--brand-strong); font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.legal-hero h1 { font-size: clamp(3rem, 7vw, 5.4rem); font-weight: 800; letter-spacing: -.065em; line-height: .96; margin: .75rem 0 1.2rem; }
.legal-summary { color: var(--muted); font-size: 1.05rem; line-height: 1.75; max-width: 760px; }
.legal-meta { align-items: center; display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; margin-top: 1.7rem; }
.legal-meta span { align-items: center; color: #5f566a; display: inline-flex; font-size: .72rem; font-weight: 700; gap: .5rem; }
.legal-meta i { color: var(--brand-strong); }

.legal-main { padding: 76px 0 108px; }
.legal-layout { align-items: start; display: grid; gap: 72px; grid-template-columns: 260px minmax(0, 780px); justify-content: center; }
.legal-sidebar { display: grid; gap: 1rem; position: sticky; top: 116px; }
.legal-toc, .legal-help { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 12px 35px rgba(37,29,58,.06); }
.legal-toc { display: flex; flex-direction: column; max-height: calc(100vh - 150px); overflow: auto; padding: 1.2rem; }
.legal-toc strong { color: var(--ink); font: 800 .72rem Manrope, sans-serif; letter-spacing: .08em; margin-bottom: .65rem; text-transform: uppercase; }
.legal-toc a { border-left: 2px solid var(--line); color: var(--muted); font-size: .69rem; line-height: 1.35; padding: .38rem .7rem; transition: .18s; }
.legal-toc a:hover { border-left-color: var(--brand); color: var(--ink); }
.legal-help { padding: 1.15rem; }
.legal-help > i { align-items: center; background: var(--orange); border-radius: 10px; display: flex; height: 34px; justify-content: center; margin-bottom: .7rem; width: 34px; }
.legal-help strong { display: block; font: 800 .8rem Manrope, sans-serif; }
.legal-help p { color: var(--muted); font-size: .68rem; line-height: 1.5; margin: .35rem 0 .55rem; }
.legal-help a { color: var(--brand-strong); font-size: .68rem; font-weight: 800; overflow-wrap: anywhere; }

.legal-content > section { border-bottom: 1px solid var(--line); padding: 0 0 3.2rem; }
.legal-content > section + section { padding-top: 3.2rem; }
.legal-content > section:last-child { border-bottom: 0; padding-bottom: 0; }
.legal-section-number { color: var(--brand-strong); display: block; font: 800 .68rem Manrope, sans-serif; letter-spacing: .14em; margin-bottom: .65rem; }
.legal-content h2 { font-size: clamp(1.65rem, 3vw, 2.15rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.16; margin: 0 0 1.1rem; }
.legal-content p, .legal-content li { color: #595161; font-size: .95rem; line-height: 1.8; }
.legal-content p + p { margin-top: 1rem; }
.legal-content ul { display: grid; gap: .7rem; margin: 1.2rem 0 0; padding-left: 1.3rem; }
.legal-content li::marker { color: var(--brand-strong); }
.legal-content a { color: #a84312; font-weight: 700; text-decoration: underline; text-decoration-color: rgba(168,67,18,.3); text-underline-offset: 3px; }
.legal-content a:hover { text-decoration-color: currentColor; }
.legal-content strong { color: var(--ink); }
.legal-callout { align-items: flex-start; background: #fff7f1; border: 1px solid #ffd8bf; border-radius: 16px; display: flex; gap: .85rem; margin-top: 1.5rem; padding: 1rem 1.1rem; }
.legal-callout > i { color: var(--brand-strong); font-size: 1.1rem; margin-top: .15rem; }
.legal-callout p { font-size: .82rem; line-height: 1.65; }
.legal-content > .legal-callout-important { background: var(--ink); border: 0; margin: 0 0 3.2rem; padding: 1.3rem 1.4rem; }
.legal-callout-important > i { color: var(--brand); }
.legal-callout-important p, .legal-callout-important strong { color: #fff; }
.legal-contact-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; display: grid; font-style: normal; gap: 0; margin: 1.5rem 0; overflow: hidden; }
.legal-contact-card span { align-items: center; display: grid; gap: .5rem .8rem; grid-template-columns: 28px 72px minmax(0, 1fr); padding: 1rem 1.1rem; }
.legal-contact-card span + span { border-top: 1px solid var(--line); }
.legal-contact-card i { align-items: center; background: var(--orange); border-radius: 8px; color: var(--ink); display: flex; height: 28px; justify-content: center; width: 28px; }
.legal-contact-card strong { font-size: .7rem; text-transform: uppercase; }
.legal-contact-card a, .legal-contact-card em { color: var(--muted); font-size: .78rem; font-style: normal; font-weight: 500; line-height: 1.5; overflow-wrap: anywhere; text-decoration: none; }

@media (max-width: 991.98px) {
    .legal-hero { padding: 58px 0 64px; }
    .legal-layout { gap: 36px; grid-template-columns: 1fr; }
    .legal-sidebar { position: static; }
    .legal-toc { max-height: none; }
    .legal-help { display: none; }
}

@media (max-width: 575.98px) {
    .legal-hero { padding: 44px 0 50px; }
    .legal-breadcrumb { margin-bottom: 1.4rem; }
    .legal-hero h1 { font-size: 3rem; }
    .legal-summary { font-size: .92rem; }
    .legal-meta { align-items: flex-start; flex-direction: column; }
    .legal-main { padding: 46px 0 78px; }
    .legal-layout { gap: 28px; }
    .legal-toc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .legal-toc strong { grid-column: 1 / -1; }
    .legal-toc a { font-size: .63rem; min-width: 0; overflow-wrap: anywhere; }
    .legal-content > section { padding-bottom: 2.4rem; }
    .legal-content > section + section { padding-top: 2.4rem; }
    .legal-content p, .legal-content li { font-size: .89rem; }
    .legal-contact-card span { align-items: start; grid-template-columns: 28px 1fr; }
    .legal-contact-card strong { align-self: center; }
    .legal-contact-card a, .legal-contact-card em { grid-column: 2; }
}
