/* One stylesheet for the two legal pages. Same palette as the app so the
   links out of the paywall don't feel like they leave it. */
:root {
    --background: #faf5f0;
    --surface: #ffffff;
    --primary-text: #211f1c;
    --secondary-text: #736e68;
    --accent: #0f8a6b;
    --rule: #e6ded6;
}

@media (prefers-color-scheme: dark) {
    :root {
        --background: #141312;
        --surface: #1e1c1a;
        --primary-text: #f2efec;
        --secondary-text: #a29b94;
        --accent: #3fbf99;
        --rule: #2e2b28;
    }
}

* { box-sizing: border-box; }

body {
    margin: 0;
    padding: 0 24px 96px;
    background: var(--background);
    color: var(--primary-text);
    font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-text-size-adjust: 100%;
}

main {
    max-width: 42rem;
    margin: 0 auto;
}

header {
    padding: 56px 0 8px;
    border-bottom: 1px solid var(--rule);
    margin-bottom: 32px;
}

h1 {
    font-size: 2rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin: 0 0 8px;
}

h2 {
    font-size: 1.25rem;
    letter-spacing: -0.01em;
    margin: 40px 0 12px;
}

h3 {
    font-size: 1rem;
    margin: 28px 0 8px;
}

.updated {
    color: var(--secondary-text);
    font-size: 0.9rem;
    margin: 0 0 24px;
}

.lede {
    font-size: 1.1rem;
    color: var(--secondary-text);
    margin: 0 0 8px;
}

a { color: var(--accent); }

ul { padding-left: 1.25rem; }

li { margin: 6px 0; }

table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 0.95rem;
}

th, td {
    text-align: left;
    vertical-align: top;
    padding: 10px 12px 10px 0;
    border-bottom: 1px solid var(--rule);
}

th { font-weight: 600; }

.callout {
    background: var(--surface);
    border: 1px solid var(--rule);
    border-radius: 14px;
    padding: 16px 20px;
    margin: 24px 0;
}

.callout p:first-child { margin-top: 0; }
.callout p:last-child { margin-bottom: 0; }

footer {
    margin-top: 56px;
    padding-top: 24px;
    border-top: 1px solid var(--rule);
    color: var(--secondary-text);
    font-size: 0.9rem;
}

/* Wide content should scroll inside itself rather than the page. */
.scroll { overflow-x: auto; }
