/*
 * Ekora's legal pages (/ekora/privacy/, /ekora/terms/). The site's warm design (paper, ink, clay;
 * Instrument Serif headings over Karla), with a header and footer of their own: Ekora's members
 * never see the rest of the site's navigation.
 */
:root {
    --paper: #f6f1e8;
    --paper-alt: #efe7d9;
    --ink: #211f1b;
    --ink-soft: #4a443b;
    --ink-muted: #5c554a;
    --ink-faint: #6b6459;
    --ink-ghost: #8b8375;
    --rule: #ddd3c2;
    --sand: #c9bda9;
    --clay: #a8482a;
    --clay-dark: #8a3a21;
    --amber: #e2a06d;
    --dark-rule: #3b362e;
    --on-dark: #cdc5b7;
    --on-dark-bright: #f2ece1;
    --serif: "Instrument Serif", Georgia, serif;
    --sans: Karla, Helvetica, system-ui, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--sans);
    background: var(--paper);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.wrap {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 26px;
}

/* Header: Ekora, a product of Ecclerium. */
.header {
    border-bottom: 1px solid var(--rule);
}

.header .wrap {
    padding-top: 18px;
    padding-bottom: 18px;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px 12px;
}

.wordmark {
    font-family: var(--serif);
    font-size: 30px;
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.byline {
    font-size: 14px;
    color: var(--ink-faint);
}

/* Title block. */
.doc-hero {
    padding: 64px 0 40px;
    border-bottom: 1px solid var(--rule);
}

.eyebrow {
    font-size: 13px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--clay);
    font-weight: 600;
    margin-bottom: 18px;
}

.doc-hero h1 {
    font-family: var(--serif);
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.02;
    font-size: clamp(40px, 5vw, 68px);
    margin-bottom: 16px;
}

.doc-hero p {
    font-size: 19px;
    line-height: 1.55;
    color: var(--ink-soft);
    max-width: 56ch;
}

.meta {
    display: inline-block;
    margin-top: 22px;
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--paper-alt);
    border: 1px solid var(--rule);
    font-size: 14px;
    font-weight: 600;
    color: var(--ink-faint);
}

/* Body: a reading column, with the contents beside it on wide screens. */
.content {
    padding: 48px 0 90px;
}

.layout {
    display: grid;
    gap: 40px;
}

.toc {
    padding: 20px 22px;
    border: 1px solid var(--rule);
    border-radius: 12px;
    background: var(--paper-alt);
}

.toc h2 {
    font-size: 13px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-faint);
    font-weight: 700;
    margin-bottom: 12px;
}

.toc ol {
    padding-left: 1.4rem;
    display: grid;
    gap: 6px;
    font-size: 15px;
    line-height: 1.45;
    color: var(--ink-faint);
}

.toc a {
    color: var(--ink-soft);
    text-decoration: none;
}

.toc a:hover {
    color: var(--clay);
    text-decoration: underline;
}

.policy {
    max-width: 760px;
    min-width: 0;
}

.policy section {
    scroll-margin-top: 24px;
}

.policy h2 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: 30px;
    letter-spacing: -0.015em;
    line-height: 1.15;
    margin-top: 44px;
    padding-top: 26px;
    border-top: 1px solid var(--rule);
}

.policy section:first-child h2 {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.policy h3 {
    font-size: 17px;
    font-weight: 700;
    margin-top: 22px;
}

.policy p,
.policy ul {
    font-size: 17px;
    line-height: 1.7;
    color: var(--ink-soft);
    margin-top: 14px;
}

.policy ul {
    padding-left: 1.3rem;
}

.policy li {
    margin-bottom: 8px;
}

.policy a {
    color: var(--clay);
    overflow-wrap: anywhere;
}

.policy a:hover {
    color: var(--clay-dark);
}

.policy strong {
    color: var(--ink);
}

@media (min-width: 1024px) {
    .layout {
        grid-template-columns: 260px minmax(0, 760px);
        gap: 64px;
        align-items: start;
    }

    .toc {
        position: sticky;
        top: 24px;
        max-height: calc(100vh - 48px);
        overflow-y: auto;
    }
}

/* Footer: the company, the contact and the two pages. */
.footer {
    background: var(--ink);
    color: var(--on-dark);
    padding: 44px 0 32px;
    font-size: 15px;
    line-height: 1.6;
}

.footer-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 24px 48px;
}

.footer .company {
    color: var(--on-dark-bright);
    font-weight: 600;
}

.footer a {
    color: var(--on-dark);
    text-decoration: none;
}

.footer a:hover {
    color: #fff;
}

.footer a.accent {
    color: var(--amber);
    font-weight: 600;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
}

.footer-links a[aria-current="page"] {
    color: var(--on-dark-bright);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.footer-bottom {
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid var(--dark-rule);
    font-size: 13px;
    color: var(--ink-ghost);
}

.doc-hero p a {
    color: var(--clay);
}
