/*
 * Text pages from the admin (privacy policy, terms...): a centred title
 * and the formatted text in a readable column.
 */

.text-page {
    padding-bottom: clamp(90px, 9vw, 150px);
    background: var(--c-sand);
}

.text-page__inner {
    max-width: calc(760px + 2 * var(--gutter));
    margin: 0 auto;
    padding: clamp(24px, 4vw, 56px) var(--gutter) 0;
}

.text-page__hidden {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 28px;
    padding: 14px 18px;
    border: 1px dashed var(--c-frame);
    border-radius: 14px;
    background: rgba(110, 20, 35, .05);
    color: var(--c-accent);
    font-size: 15px;
}

.text-page__hidden svg { flex: none; width: 20px; height: 20px; margin-top: 1px; }

.text-page__head { text-align: center; }

.text-page__title {
    margin: 0;
    font-family: var(--font-script);
    font-weight: 400;
    font-size: clamp(48px, 6vw, 84px);
    line-height: 1.05;
    color: var(--c-accent);
    text-wrap: balance;
}

.text-page__content {
    margin-top: clamp(32px, 4vw, 48px);
    color: var(--c-ink-soft);
    font-size: clamp(16px, 1.15vw, 17.5px);
    line-height: 1.7;
    overflow-wrap: anywhere;
}

/* Trix wraps paragraphs in divs, with <br><br> between them */
.text-page__content > * + * { margin-top: 1em; }
.text-page__content > :first-child { margin-top: 0; }

.text-page__content h2 {
    margin: 1.8em 0 .5em;
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: clamp(24px, 2vw, 29px);
    line-height: 1.2;
    color: var(--c-accent);
}

.text-page__content h2:first-child { margin-top: 0; }

.text-page__content ul,
.text-page__content ol { margin: .6em 0 1em; padding-left: 1.4em; }
.text-page__content li + li { margin-top: .35em; }
.text-page__content li::marker { color: var(--c-accent); }

.text-page__content a { color: var(--c-accent); text-underline-offset: 3px; }
.text-page__content strong { color: var(--c-ink); font-weight: 500; }

.text-page__content blockquote {
    margin: 1.2em 0;
    padding: .2em 0 .2em 1.1em;
    border-left: 2px solid var(--c-gold);
    font-style: italic;
}
