/* ==========================================================================
   Support pages — page-scoped, linked only by help.html, about-us.html,
   privacy.html, terms.html, terms-of-sale.html and cookie-policy.html
   (house style 2026-10-01: a rule for one page goes in that page's own sheet).
   Started 2026-10-02.
   ========================================================================== */
/* ---- help.html: the FAQ ----
   <details>/<summary>, so it opens and closes with no script and works
   with the keyboard and a screen reader as it is. Dark, like the rest of
   the page; the one light thing here is the contact form. */
.faq-group {
    max-width: 46rem;
    margin: 0 auto var(--space-12);
}

.faq-heading {
    margin-bottom: var(--space-3);
    color: var(--c-orange);
}

.faq-item {
    border-bottom: 1px solid var(--c-white-25);
}

.faq-item:first-of-type {
    border-top: 1px solid var(--c-white-25);
}

.faq-item summary {
    position: relative;
    padding: var(--space-4) var(--space-8) var(--space-4) 0;
    font-family: var(--font-heading-fat);
    font-size: var(--fs-lg);
    line-height: 1.3;
    cursor: pointer;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

/* The plus turns into a minus. Drawn in CSS, so there is no icon file and the
   colour follows the text. */
.faq-item summary::after {
    content: "+";
    position: absolute;
    top: var(--space-4);
    right: 0;
    color: var(--c-orange);
    font-family: var(--font-body);
    font-size: var(--fs-2xl);
    line-height: 1;
    transition: transform var(--transition);
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item summary:focus-visible {
    outline: 2px solid var(--c-orange);
    outline-offset: 2px;
}

.faq-answer {
    padding: 0 0 var(--space-4);
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

/* ---- help.html: the contact form ----
   The cream card, like the review form and the checkout form. The select is
   full width here: .w-select is 25% wide by default because on the order page
   it sits beside other fields. */
.support-form .w-select {
    width: 100%;
    margin-right: 0;
}

/* ---- the legal pages ----
   A reading column, not a layout: one measure for every legal page so a
   reader who goes from Privacy to Terms does not have to re-learn it. */
.legal-doc {
    max-width: 46rem;
    margin: 0 auto;
}

.legal-doc h2 {
    margin: var(--space-12) 0 var(--space-3);
    color: var(--c-orange);
    font-family: var(--font-heading-fat);
    font-size: var(--fs-xl);
    line-height: 1.25;
}

.legal-doc h2:first-child {
    margin-top: 0;
}

.legal-doc h3 {
    margin: var(--space-6) 0 var(--space-2);
    font-family: var(--font-heading-fat);
    font-size: var(--fs-md);
}

.legal-doc ul,
.legal-doc ol {
    margin: 0 0 var(--space-4);
    padding-left: var(--space-6);
}

.legal-doc li {
    margin-bottom: var(--space-2);
}

.legal-doc a {
    color: var(--c-orange);
}

/* The short version at the top of every legal page: three or four lines in
   plain words, for the reader who will not read the rest. It does not replace
   the text below; the text below is what binds. */
.legal-summary {
    max-width: 46rem;
    margin: 0 auto var(--space-12);
    padding: var(--space-6);
    border-left: 4px solid var(--c-orange);
    background-color: var(--c-blue-900);
    box-shadow: var(--shadow-tight);
    text-align: left;
}

.legal-summary h2 {
    margin: 0 0 var(--space-2);
    font-family: var(--font-heading-fat);
    font-size: var(--fs-lg);
}

.legal-summary ul {
    margin: 0;
    padding-left: var(--space-6);
}

.legal-summary li {
    margin-bottom: var(--space-2);
}

.legal-summary li:last-child {
    margin-bottom: 0;
}

.legal-date {
    max-width: 46rem;
    margin: 0 auto var(--space-6);
    color: var(--c-white-75);
    font-size: var(--fs-sm);
}

/* The links to the other three legal pages, closing each one. */
.legal-more {
    max-width: 46rem;
    margin: var(--space-12) auto 0;
    padding-top: var(--space-6);
    border-top: 1px solid var(--c-white-25);
}

.legal-more a {
    margin-right: var(--space-2);
    white-space: nowrap;
    margin-left: var(--space-2);
}

/* ---- cookie-policy.html: the table ----
   Below 768px each row becomes a card with its column name above each value,
   so no one scrolls sideways to read a cookie's purpose. The names come from
   data-label in the markup, never from here (no user-visible string in CSS). */
.cookie-table {
    width: 100%;
    margin: 0 0 var(--space-6);
    border-collapse: collapse;
    font-size: var(--fs-base);
}

.cookie-table th,
.cookie-table td {
    padding: var(--space-3) var(--space-3) var(--space-3) 0;
    border-bottom: 1px solid var(--c-white-25);
    text-align: left;
    vertical-align: top;
}

.cookie-table th {
    font-family: var(--font-heading-fat);
    font-weight: normal;
}

.cookie-table code {
    font-size: var(--fs-sm);
    word-break: break-all;
}

@media (max-width: 767px) {
    .cookie-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
    }

    .cookie-table tr {
        display: block;
        padding: var(--space-3) 0;
        border-bottom: 1px solid var(--c-white-25);
    }

    .cookie-table th[scope="row"],
    .cookie-table td {
        display: block;
        padding: var(--space-1) 0;
        border: 0;
    }

    .cookie-table td::before {
        content: attr(data-label);
        display: block;
        color: var(--c-white-75);
        font-size: var(--fs-xs);
        text-transform: uppercase;
        letter-spacing: .06em;
    }
}

/* ---- about-us.html ---- */
.about-facts {
    display: grid;
    gap: var(--space-6);
    max-width: 46rem;
    margin: var(--space-8) auto 0;
    padding: 0;
    list-style: none;
    padding-top: var(--space-6);
    border-top: 1px dotted var(--c-blue-800);
}

@media (min-width: 768px) {
    .about-facts {
        grid-template-columns: repeat(3, 1fr);
        max-width: 60rem;
    }
}

.about-facts li {
    text-align: center;
}

.about-facts strong {
    display: block;
    color: var(--c-orange);
    font-family: var(--font-heading-fat);
    font-size: var(--fs-3xl);
    font-weight: normal;
    line-height: 1.1;
}

/* ---- help.html: open all / close all ----
   A plain link at the right of each group heading, not a button in look: a
   convenience, not the page's action (that is "Contact us"). The heading and
   the link share a baseline; the link drops below it on a very narrow phone. */
.faq-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--space-2) var(--space-4);
    margin-bottom: var(--space-3);
}

.faq-head .faq-heading {
    margin-bottom: 0;
}

.faq-all__link {
    padding: 0;
    border: 0;
    background: none;
    color: var(--c-orange);
    font: inherit;
    font-size: var(--fs-sm);
    text-decoration: underline;
    cursor: pointer;
}
