/* ============================================================
   LEGAL & INFORMATION PAGES
   Terms, Privacy, Cancellation & Refund, Contact.

   These pages carry no hero, so the navbar can never earn its
   .scrolled state at the top of the document — script.js only
   adds it past 60px. Left alone the wordmark is white type on
   ivory paper: invisible. .legal-page pins the solid treatment
   on from the first pixel instead of touching script.js.
   ============================================================ */

.legal-page .navbar {
    background: rgba(248, 245, 239, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom-color: var(--line);
}
.legal-page .navbar .navbar-wordmark { color: var(--text-heading); text-shadow: none; }
.legal-page .navbar .nav-menu a      { color: var(--text-body); }
.legal-page .navbar .nav-menu a:hover{ color: var(--gold); }
.legal-page .navbar .nav-phone       { color: var(--text-body); }
.legal-page .navbar .nav-book        { background: var(--gold); border-color: var(--gold); }

/* ---- masthead ---- */
.legal-head {
    padding: calc(96px + var(--gutter)) var(--gutter) 0;
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}
.legal-eyebrow {
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold-deep);
    margin-bottom: 18px;
}
.legal-head h1 {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(2.3rem, 6vw, 3.6rem);
    line-height: 1.08;
    color: var(--text-heading);
    margin: 0 0 20px;
}
.legal-stamp {
    font-family: var(--font-body);
    font-size: 0.86rem;
    color: var(--text-muted);
}
.legal-rule {
    width: 56px; height: 1px;
    background: var(--gold-soft);
    margin: 34px auto 0;
    border: 0;
}

/* ---- body ---- */
.legal-body {
    max-width: 820px;
    margin: 0 auto;
    padding: clamp(44px, 7vw, 72px) var(--gutter) var(--section-pad);
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 1.02rem;
    line-height: 1.78;
    color: var(--text-body);
}
.legal-body section + section { margin-top: clamp(38px, 5vw, 56px); }

.legal-body h2 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(1.42rem, 3.2vw, 1.85rem);
    line-height: 1.25;
    color: var(--text-heading);
    margin: 0 0 6px;
}
.legal-body h2 .legal-num {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    color: var(--gold-deep);
    display: block;
    margin-bottom: 10px;
}
.legal-body h3 {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 1.02rem;
    letter-spacing: 0.01em;
    color: var(--text-heading);
    margin: 26px 0 6px;
}
.legal-body p  { margin: 0 0 14px; }
.legal-body ul { margin: 0 0 14px; padding-left: 0; list-style: none; }
.legal-body li { position: relative; padding-left: 22px; margin-bottom: 9px; }
.legal-body li::before {
    content: "";
    position: absolute;
    left: 4px; top: 0.72em;
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--gold-soft);
}
.legal-body strong { font-weight: 500; color: var(--text-heading); }
.legal-body a { color: var(--gold-deep); text-decoration: none; border-bottom: 1px solid var(--gold-soft); }
.legal-body a:hover { color: var(--gold); }

/* ---- a clause worth not missing ---- */
.legal-note {
    background: var(--cream);
    border-left: 2px solid var(--gold);
    border-radius: 3px;
    padding: 20px 24px;
    margin: 22px 0;
}
.legal-note p:last-child { margin-bottom: 0; }

/* ---- money / terms table ---- */
.legal-table-wrap { overflow-x: auto; margin: 20px 0; }
.legal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}
.legal-table th, .legal-table td {
    text-align: left;
    padding: 13px 16px;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}
.legal-table th {
    font-weight: 500;
    color: var(--text-heading);
    letter-spacing: 0.04em;
    font-size: 0.78rem;
    text-transform: uppercase;
    background: var(--cream);
}
.legal-table td:last-child { font-family: var(--font-amount); }

/* ---- contact cards ---- */
.legal-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    margin: 26px 0;
}
@media (min-width: 720px) { .legal-cards { grid-template-columns: 1fr 1fr; } }
.legal-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 26px;
}
.legal-card h3 { margin-top: 0; }
.legal-card p  { margin-bottom: 6px; }
.legal-card .legal-card-note { color: var(--text-muted); font-size: 0.9rem; }

/* ---- cross-links at the foot of each page ---- */
.legal-siblings {
    max-width: 820px;
    margin: 0 auto;
    padding: 0 var(--gutter) var(--section-pad);
    display: flex;
    flex-wrap: wrap;
    gap: 10px 26px;
    justify-content: center;
    font-family: var(--font-body);
    font-size: 0.9rem;
}
.legal-siblings a { color: var(--text-muted); text-decoration: none; }
.legal-siblings a:hover { color: var(--gold); }
.legal-siblings a[aria-current="page"] { color: var(--gold-deep); }

/* ---- anything still to be supplied before this goes live ---- */
mark.tofill {
    background: #fff3cd;
    color: #7a5b00;
    border-bottom: 1px dashed #c9a227;
    padding: 1px 5px;
    border-radius: 2px;
    font-style: normal;
}

/* ---- narrow screens: stack rather than scroll ---- */
@media (max-width: 560px) {
    .legal-table-wrap { overflow-x: visible; }
    .legal-table, .legal-table tbody, .legal-table tr, .legal-table td, .legal-table th {
        display: block;
        width: 100%;
    }
    .legal-table thead { display: none; }
    .legal-table tr {
        border: 1px solid var(--line);
        border-radius: 4px;
        padding: 14px 16px;
        margin-bottom: 10px;
        background: var(--white);
    }
    .legal-table td, .legal-table th {
        border: 0;
        padding: 0;
        background: none;
    }
    /* the label half */
    .legal-table tbody th,
    .legal-table td:first-child {
        font-family: var(--font-body);
        font-size: 0.74rem;
        font-weight: 500;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: var(--text-muted);
        margin-bottom: 4px;
    }
    /* the value half */
    .legal-table td:last-child {
        font-size: 1.02rem;
        color: var(--text-heading);
    }
    .legal-table tr:last-child { margin-bottom: 0; }
}
