/* Shared styles for the Terms of Service and Privacy Policy pages. */
:root {
    --bg: #F7F6F3;
    --surface: #FFFFFF;
    --text: #344054;
    --muted: #667085;
    --line: #E7E4DE;
    --teal: #1F3B3F;
    --accent: #B5475E;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
}

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

.top, main, footer {
    margin: 0 auto;
    max-width: 760px;
    padding-left: 24px;
    padding-right: 24px;
}

.top {
    align-items: center;
    display: flex;
    justify-content: space-between;
    padding-bottom: 12px;
    padding-top: 20px;
}

.brand {
    align-items: center;
    color: var(--text);
    display: flex;
    font-weight: 700;
    gap: 10px;
    text-decoration: none;
}

.brand img { border-radius: 8px; height: 28px; width: 28px; }

nav { display: flex; gap: 16px; }
nav a { color: var(--muted); text-decoration: none; }
nav a[aria-current="page"] { color: var(--teal); font-weight: 600; }

main {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    margin-bottom: 24px;
    margin-top: 8px;
    padding-bottom: 32px;
    padding-top: 28px;
}

h1 { font-size: clamp(1.7rem, 4vw, 2.2rem); letter-spacing: -0.01em; line-height: 1.2; margin: 0 0 4px; }
h2 { font-size: 1.1rem; margin: 28px 0 8px; }
p, li { font-size: .98rem; }
ul { padding-left: 1.2rem; }
li { margin-bottom: 6px; }

.updated { color: var(--muted); font-size: .88rem; margin-top: 0; }
.intro { font-size: 1.02rem; }
.small { color: var(--muted); font-size: .9rem; }

.important, .summary {
    border-radius: 12px;
    margin: 12px 0;
    padding: 14px 16px;
}
.important { background: #FDF2F4; border: 1px solid #F2CDD5; }
.summary { background: #F1F7F6; border: 1px solid #D9E7E4; }

table { border-collapse: collapse; font-size: .92rem; margin: 8px 0 12px; width: 100%; }
th, td { border-bottom: 1px solid var(--line); padding: 10px 8px; text-align: left; vertical-align: top; }
th { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }

footer {
    color: var(--muted);
    display: flex;
    flex-wrap: wrap;
    font-size: .88rem;
    gap: 8px 16px;
    justify-content: space-between;
    padding-bottom: 40px;
}
footer a { color: var(--muted); }

@media (max-width: 600px) {
    main { border-left: 0; border-radius: 0; border-right: 0; }
    table, thead, tbody, tr, th, td { display: block; }
    thead { display: none; }
    tr { border-bottom: 1px solid var(--line); padding: 8px 0; }
    td { border: 0; padding: 2px 0; }
    td:nth-child(2)::before { color: var(--muted); content: "Why: "; }
    td:nth-child(3)::before { color: var(--muted); content: "Legal basis: "; }
}
