/* =========================================================
   INSANE LABAN — LEGAL PAGE

   Save as: Public/css/legal.css

   This is a document, not a storefront. It is set light on
   dark-navy-free background because long-form reading is
   measurably harder on a dark ground, and the measure is
   capped at ~68 characters so the eye can find the next
   line without effort.
========================================================= */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@600;700&display=swap');


:root {
    --lg-bg:      #f7f5f1;
    --lg-surface: #ffffff;
    --lg-ink:     #1b1c1e;
    --lg-ink-2:   #4a4d52;
    --lg-ink-3:   #7a7f86;
    --lg-line:    #e4e0d8;
    --lg-navy:    #0b1c38;
    --lg-gold:    #c5962b;
    --lg-violet:  #6b3df5;
}


* {
    box-sizing: border-box;
}


body {
    margin: 0;

    background: var(--lg-bg);

    color: var(--lg-ink);
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont,
                 'Segoe UI', Roboto, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;

    -webkit-font-smoothing: antialiased;
}


/* =========================================================
   HEADER
========================================================= */

.legal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    padding: 18px 32px;

    background: var(--lg-navy);
}


.legal-brand {
    display: flex;
    align-items: center;
    gap: 11px;

    color: #ffffff;
    text-decoration: none;
}

.legal-brand img {
    width: 34px;
    height: 34px;
    object-fit: contain;
    border-radius: 8px;
}

.legal-brand span {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .16em;
}


.legal-updated {
    color: rgba(255, 255, 255, .55);
    font-size: 12px;
}


/* =========================================================
   CONTENTS
========================================================= */

.legal-contents {
    position: sticky;
    top: 0;
    z-index: 10;

    display: flex;
    flex-wrap: wrap;
    gap: 6px;

    padding: 12px 32px;

    background: rgba(247, 245, 241, .94);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--lg-line);
}


.legal-contents a {
    padding: 7px 13px;

    border-radius: 20px;

    color: var(--lg-ink-2);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;

    transition: background .15s ease, color .15s ease;
}

.legal-contents a:hover {
    background: #ece8e0;
    color: var(--lg-ink);
}


/* =========================================================
   PAGE
========================================================= */

.legal-page {
    max-width: 820px;
    margin: 0 auto;
    padding: 44px 32px 70px;
}


.legal-section {
    padding: 44px 48px 50px;

    border: 1px solid var(--lg-line);
    border-radius: 20px;
    background: var(--lg-surface);
}


/* =========================================================
   TYPE
========================================================= */

.legal-page h1 {
    margin: 0 0 6px;

    color: var(--lg-navy);
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 38px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -.01em;
}


/* The privacy policy starts a second document on the page,
   so it gets a rule above it rather than just more space. */

.legal-page h1.legal-second-title {
    margin-top: 60px;
    padding-top: 46px;
    border-top: 2px solid var(--lg-line);
}


.legal-page h2 {
    margin: 34px 0 10px;

    color: var(--lg-navy);
    font-size: 19px;
    font-weight: 700;
    line-height: 1.35;
}


.legal-page p {
    margin: 0 0 15px;

    /* capped measure - long lines are where readers lose
       their place in a document like this */
    max-width: 68ch;

    color: var(--lg-ink-2);
}


.legal-intro {
    margin-bottom: 26px !important;

    padding-bottom: 22px;
    border-bottom: 1px solid var(--lg-line);

    color: var(--lg-ink) !important;
    font-size: 17px;
}


.legal-page ul {
    max-width: 68ch;
    margin: 0 0 17px;
    padding-left: 22px;

    color: var(--lg-ink-2);
}

.legal-page li {
    margin-bottom: 8px;
    padding-left: 3px;
}

.legal-page li::marker {
    color: var(--lg-gold);
}


.legal-page strong {
    color: var(--lg-ink);
    font-weight: 600;
}


.legal-footnote {
    margin-top: 40px !important;
    padding-top: 22px;
    border-top: 1px solid var(--lg-line);

    color: var(--lg-ink-3) !important;
    font-size: 13px;
}


/* Anchor targets clear the sticky contents bar */

#terms,
#privacy,
#cookies,
#contact {
    scroll-margin-top: 76px;
}


/* =========================================================
   FOOTER
========================================================= */

.legal-page-footer {
    padding: 0 32px 60px;
    text-align: center;
}

.legal-page-footer a {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    padding: 12px 22px;

    border: 1px solid var(--lg-line);
    border-radius: 30px;
    background: var(--lg-surface);

    color: var(--lg-ink-2);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.legal-page-footer a:hover {
    border-color: var(--lg-violet);
    color: var(--lg-violet);
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 700px) {

    .legal-header {
        padding: 14px 18px;
    }

    .legal-updated {
        display: none;
    }

    .legal-contents {
        padding: 10px 14px;
        gap: 4px;
    }

    .legal-contents a {
        padding: 6px 11px;
        font-size: 12px;
    }

    .legal-page {
        padding: 24px 14px 44px;
    }

    .legal-section {
        padding: 26px 22px 32px;
        border-radius: 16px;
    }

    .legal-page h1 {
        font-size: 28px;
    }

    .legal-page h1.legal-second-title {
        margin-top: 44px;
        padding-top: 34px;
    }

    .legal-page h2 {
        margin-top: 28px;
        font-size: 17px;
    }

    .legal-page p,
    .legal-page ul {
        font-size: 15px;
    }

}


/* =========================================================
   PRINT
========================================================= */

/*
| People do print terms, and a customer in a dispute may need
| to. The chrome is noise on paper.
*/

@media print {

    .legal-header,
    .legal-contents,
    .legal-page-footer {
        display: none;
    }

    body {
        background: #fff;
        font-size: 11pt;
    }

    .legal-page {
        max-width: none;
        padding: 0;
    }

    .legal-section {
        padding: 0;
        border: 0;
    }

    .legal-page h1,
    .legal-page h2 {
        page-break-after: avoid;
    }

}