/* =================================================================
 * SERIEL — Legal pages
 * Editorial article register: serif headings, sans body, mono eyebrows.
 * Body text content is preserved verbatim from the prior version;
 * only the type/colour treatment changes.
 * ================================================================= */

/* -------------------------------------------------------------- */
/* Document folio                                                 */
/* -------------------------------------------------------------- */

.doc-folio {
    border-bottom: 1px solid var(--hairline);
}

.doc-folio-inner {
    max-width: var(--page-max);
    margin: 0 auto;
    padding: var(--sp-xxl) var(--gutter);
}

.doc-kind {
    font-family: var(--mono);
    font-weight: 500;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    margin: 0 0 var(--sp-sm);
}

.doc-title {
    font-family: var(--serif);
    font-weight: 600;
    font-size: clamp(34px, 4.6vw, 56px);
    line-height: 1.0;
    letter-spacing: -0.02em;
    margin: 0;
    color: var(--text-primary);
}

/* Hide the wrong-language article shell via CSS; setLang JS still sets
   the [hidden] attribute too, for accessibility (screen readers). */
:root[data-lang="en"] .legal-text[lang="de"] { display: none; }
:root[data-lang="de"] .legal-text[lang="en"] { display: none; }

/* -------------------------------------------------------------- */
/* Article body                                                   */
/*                                                                */
/* Left-aligned reading column with the page gutter on the left   */
/* (mirrors the homepage spreads). The column is constrained to a */
/* readable measure but anchored to the page margin, not centred  */
/* in the viewport — long-form text reads as an editorial column, */
/* not a floating block.                                          */
/* -------------------------------------------------------------- */

.legal-content {
    max-width: var(--page-max);
    margin: 0 auto;
    padding: clamp(40px, 7vh, 72px) var(--gutter) clamp(64px, 10vh, 112px);
}

.legal-text {
    max-width: 720px;
}

.legal-text h1 {
    /* The H1 is rendered inside .doc-folio above as .doc-title.
       Articles still carry their own H1 for accessibility/anchor; we hide
       it visually here so the editorial folio is the canonical title. */
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.legal-date {
    font-family: var(--mono);
    font-weight: 500;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    margin: 0 0 var(--sp-editorial);
}

.legal-text h2 {
    font-family: var(--serif);
    font-weight: 600;
    font-size: clamp(22px, 2.4vw, 28px);
    line-height: 1.15;
    letter-spacing: -0.012em;
    margin-top: var(--sp-editorial);
    margin-bottom: var(--sp-md);
    color: var(--text-primary);
}

.legal-text h2 + p,
.legal-text h2 + ul { margin-top: 0; }

.legal-text h3 {
    font-family: var(--serif);
    font-weight: 500;
    font-size: clamp(17px, 1.8vw, 20px);
    line-height: 1.2;
    margin-top: var(--sp-xxl);
    margin-bottom: var(--sp-sm);
    color: var(--text-primary);
    letter-spacing: -0.005em;
}

.legal-text p {
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.65;
    color: var(--text-secondary);
    margin: 0 0 var(--sp-lg);
}

.legal-text ul,
.legal-text ol {
    margin: 0 0 var(--sp-lg);
    padding-left: 1.4em;
}

.legal-text li {
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.65;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.legal-text a {
    color: var(--text-primary);
    text-decoration: underline;
    text-decoration-color: var(--tide);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: text-decoration-color 200ms ease;
}
.legal-text a:hover {
    text-decoration-color: var(--text-primary);
}

.legal-text strong {
    color: var(--text-primary);
    font-weight: 600;
}

.legal-text em { font-style: italic; }

/* Subscription card / FAQ details */
.subscription-card {
    background: var(--surface-1);
    border: 1px solid var(--hairline);
    border-radius: 14px;
    padding: var(--sp-xxl);
    margin: var(--sp-xxl) 0;
}
.subscription-card h3 { margin-top: 0; }
.subscription-card p:last-child { margin-bottom: 0; }

details {
    border-top: 1px solid var(--hairline);
    padding: var(--sp-lg) 0;
}
details:last-of-type { border-bottom: 1px solid var(--hairline); }

details summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--sp-md);
    font-family: var(--serif);
    font-weight: 500;
    font-size: clamp(17px, 1.7vw, 19px);
    color: var(--text-primary);
    letter-spacing: -0.005em;
}
details summary::-webkit-details-marker { display: none; }
details summary::after {
    content: '+';
    color: var(--tide);
    font-family: var(--mono);
    font-size: 20px;
    line-height: 1;
    transition: transform 200ms ease;
}
details[open] summary::after { content: '−'; }

details p {
    margin-top: var(--sp-md);
    margin-bottom: 0;
}
