/* ============================================================
   Legal pages — Disclaimer, Privacy Policy, Terms & Conditions
   Path: public/assets/css/disclaimer.css

   Reusable across all three: the .legal-* classes are generic.
   Rename the file to legal.css if you apply it to the others.
   ============================================================ */

.legal-page {
    padding: 60px 0 80px;
    color: #2b2b2b;
    /* Anchor links land below the fixed header rather than under it.
       Adjust 90px to your actual header height. */
    scroll-padding-top: 90px;
}

.legal-page :target {
    scroll-margin-top: 90px;
}

/* ---------- Breadcrumb ---------- */
.legal-breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    font-size: 13px;
    color: #777;
}
.legal-breadcrumb li + li::before {
    content: "/";
    margin-right: 8px;
    color: #bbb;
}
.legal-breadcrumb a {
    color: #777;
    text-decoration: none;
}
.legal-breadcrumb a:hover {
    color: #8b6f4e;
    text-decoration: underline;
}

/* ---------- Header ---------- */
.legal-header {
    padding-bottom: 24px;
    margin-bottom: 40px;
    border-bottom: 1px solid #e4e4e4;
}
.legal-header h1 {
    font-size: 40px;
    line-height: 1.15;
    margin: 0 0 10px;
    color: #191919;
}
.legal-updated {
    margin: 0;
    font-size: 14px;
    color: #777;
}

/* ---------- Layout: TOC + body ---------- */
.legal-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 56px;
    align-items: start;
}

/* ---------- Table of contents ---------- */
.legal-toc {
    position: sticky;
    top: 110px;             /* clears the fixed header */
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    padding-right: 8px;
}
.legal-toc__title {
    margin: 0 0 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #999;
}
.legal-toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
    border-left: 2px solid #ececec;
}
.legal-toc li {
    margin: 0;
}
.legal-toc a {
    display: block;
    padding: 7px 0 7px 16px;
    margin-left: -2px;
    border-left: 2px solid transparent;
    font-size: 14px;
    line-height: 1.4;
    color: #666;
    text-decoration: none;
    transition: color .2s ease, border-color .2s ease;
}
.legal-toc a:hover,
.legal-toc a:focus-visible {
    color: #8b6f4e;
    border-left-color: #8b6f4e;
}

/* ---------- Body copy ---------- */
.legal-body {
    max-width: 760px;       /* ~75 characters — readable measure */
    font-size: 16px;
    line-height: 1.75;
}
.legal-intro {
    font-size: 17px;
}
.legal-body p {
    margin: 0 0 18px;
}
.legal-body ul {
    margin: 0 0 18px;
    padding-left: 22px;
}
.legal-body li {
    margin-bottom: 8px;
}
.legal-body a {
    color: #8b6f4e;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.legal-body a:hover {
    color: #6f5739;
}
.legal-body strong {
    color: #191919;
    font-weight: 600;
}

.legal-section {
    padding-top: 8px;
    margin-bottom: 44px;
}
.legal-section h2 {
    font-size: 24px;
    line-height: 1.3;
    margin: 0 0 16px;
    color: #191919;
}

/* ---------- Callout: the clauses that matter commercially ---------- */
.legal-callout {
    padding: 16px 18px;
    margin: 0 0 18px;
    background: #faf7f2;
    border-left: 3px solid #8b6f4e;
    border-radius: 0 6px 6px 0;
}

/* ---------- Address block ---------- */
.legal-address {
    padding: 20px;
    background: #f7f7f7;
    border-radius: 8px;
    font-style: normal;
    line-height: 1.7;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991.98px) {
    .legal-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .legal-toc {
        position: static;
        max-height: none;
        padding: 18px 20px;
        background: #f7f7f7;
        border-radius: 8px;
    }
    .legal-toc ul {
        border-left: none;
        columns: 2;
        column-gap: 28px;
    }
    .legal-toc a {
        padding: 5px 0;
        border-left: none;
        margin-left: 0;
    }
}

@media (max-width: 767.98px) {
    .legal-page {
        padding: 36px 0 56px;
    }
    .legal-header h1 {
        font-size: 30px;
    }
    .legal-header {
        margin-bottom: 28px;
    }
    .legal-body {
        font-size: 15.5px;
    }
    .legal-section h2 {
        font-size: 21px;
    }
    .legal-toc ul {
        columns: 1;
    }
}

/* ============================================================
   PRINT — customers and lawyers do print these
   ============================================================ */
@media print {
    .legal-toc,
    .legal-breadcrumb {
        display: none;
    }
    .legal-layout {
        display: block;
    }
    .legal-page {
        padding: 0;
    }
    .legal-body {
        max-width: none;
        font-size: 11pt;
    }
    .legal-section {
        page-break-inside: avoid;
    }
    /* Expose link targets in the printed copy */
    .legal-body a[href^="http"]::after {
        content: " (" attr(href) ")";
        font-size: 9pt;
        color: #555;
    }
}
