/* Shared styling for terms.html and privacy.html. Tokens mirror fitbie-ios/Shared/Theme.swift, the
   same source the landing page uses, so every page reads as one site; kept in one file because App Review
   follows these links straight from the paywall and a broken stylesheet there
   looks like a broken page. */
:root {
    --bg:        #0D0E11;
    --surface:   #16181D;
    --surface-2: #1C1E24;
    --line:      #23252C;
    --text:      #F5F3EF;
    --muted:     #8E9098;
    --accent:    #2EE6A6;
    --cap: 46rem;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    padding: 0 1.25rem 5rem;
    background: var(--bg);
    color: var(--text);
    font-family: Roboto, "Roboto Fallback", ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", sans-serif;
    font-size: clamp(1rem, 0.95rem + 0.25vw, 1.08rem);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--cap); margin: 0 auto; }

header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 3rem 0 1.75rem;
    border-bottom: 1px solid var(--line);
    margin-bottom: 2.5rem;
}

.home {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
}
.home:hover, .home:focus-visible { text-decoration: underline; }

h1 {
    margin: 0;
    font-size: clamp(2rem, 1.6rem + 2vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    text-wrap: balance;
}

.updated { color: var(--muted); font-size: 0.9rem; }

h2 {
    margin: 2.75rem 0 0.75rem;
    font-size: clamp(1.2rem, 1.1rem + 0.5vw, 1.5rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    text-wrap: balance;
}

p, li { color: #D7DEDB; }
p { margin: 0 0 1rem; }
ul { margin: 0 0 1rem; padding-left: 1.25rem; }
li { margin-bottom: 0.5rem; }

strong { color: var(--text); }

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

table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 1.5rem;
    font-size: 0.95rem;
}
th, td {
    text-align: left;
    padding: 0.65rem 0.75rem;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}
th {
    color: var(--muted);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 600;
}
.tw { overflow-x: auto; }

footer {
    margin-top: 3.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.9rem;
}
footer a { margin-right: 1.25rem; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
