/*
 * The shell around a legal document: /privacy and /terms and nothing else.
 *
 * Deliberately not the landing page's stylesheet. The landing is a sales page —
 * sticky nav, scroll reveals, a hero grid — and none of that belongs around a
 * document someone was sent to read once. What the two do share are the fonts
 * and the palette, and those come from tokens.css and fonts.css.
 */

* {
    box-sizing: border-box;
}
html {
    -webkit-text-size-adjust: 100%;
}
body {
    margin: 0;
    font-family: var(--body);
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    transition:
        background 0.4s ease,
        color 0.4s ease;
}
a {
    color: inherit;
}
.wrap {
    max-width: 720px;
    padding: 0 24px;
    margin: 0 auto;
}

h1,
h2 {
    margin: 0;
    font-family: var(--display);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.01em;
    text-wrap: balance;
}
.dot {
    color: var(--gold);
}

header.nav {
    border-bottom: 1px solid var(--hairline);
}
.nav-in {
    display: flex;
    gap: 16px;
    align-items: center;
    max-width: 720px;
    height: 68px;
    padding: 0 24px;
    margin: 0 auto;
}
.brand {
    display: flex;
    gap: 11px;
    align-items: center;
    margin-right: auto;
    text-decoration: none;
}
.brand .mark {
    display: block;
    flex: none;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    box-shadow: 0 0 0 1px var(--hairline);
}
.brand .name {
    font-family: var(--display);
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 0.01em;
}

/* Three links rather than the landing's dropdown: a document that someone was
   sent to read has to change language without JavaScript, so the choice is
   carried in the URL and each option is a real href. */
.langs {
    display: flex;
    gap: 4px;
}
.langs a {
    padding: 6px 9px;
    font-family: var(--body);
    font-size: 12px;
    font-weight: 700;
    color: var(--text-soft);
    letter-spacing: 0.06em;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: 999px;
    transition:
        color 0.2s,
        border-color 0.2s;
}
.langs a:hover {
    color: var(--text);
}
.langs a[aria-current="true"] {
    color: var(--text);
    border-color: var(--line);
}

.theme-btn {
    display: grid;
    flex: none;
    place-items: center;
    width: 36px;
    height: 36px;
    color: var(--text);
    cursor: pointer;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 999px;
    transition: border-color 0.2s;
}
.theme-btn:hover {
    border-color: var(--brand-hi);
}
.theme-btn:focus-visible,
a:focus-visible {
    outline: 2px solid var(--brand-hi);
    outline-offset: 3px;
}

main {
    padding: 56px 0 24px;
}
h1 {
    font-size: clamp(32px, 6vw, 46px);
}
.updated {
    margin: 14px 0 40px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-soft);
    text-transform: uppercase;
    letter-spacing: 0.16em;
}
/* Above .sec p, which is more specific: a later, weaker selector never wins. */
noscript p {
    color: var(--text-soft);
}
.sec {
    margin-bottom: 26px;
}
.sec h2 {
    margin: 0 0 6px;
    font-size: 22px;
    color: var(--brand-hi);
}
.sec p {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-soft);
}

footer {
    padding: 32px 0 56px;
    margin-top: 48px;
    border-top: 1px solid var(--hairline);
}
.foot-in {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 24px;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    color: var(--text-soft);
}
.foot-links {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
}
.foot-links a {
    text-decoration: none;
}
.foot-links a:hover {
    color: var(--text);
}
