/* TUNAI document pages: privacy, terms, delete-account.
 *
 * Restyled 2026-09-14 toward a calmer, more neutral surface: hairline
 * borders and soft shadows instead of the thick ink borders and hard offset
 * shadows this used to share with a louder version of the landing page. The
 * brand survives as ACCENTS rather than as blocks of colour: the blue stays
 * the one link/action colour, lime and coral are reserved for small chips
 * and left-rail flags, and the wordmark and its diagonal-gap T are untouched.
 *
 * Long-form legal text is not a marketing page, so the type is bigger, the
 * measure is narrower, and the ornament is turned down further still.
 *
 * Dark mode is kept because these pages already had it and taking it away
 * would be a silent regression. Same tokens, ground and ink swapped.
 */

:root {
  --blue: #2A3FE8;
  --blue-soft: #EEF0FE;
  --lime: #D4F02A;
  --coral: #FA5341;
  --cream: #F7F5F1;
  --paper: #FFFFFF;
  --ink: #15171E;
  --muted: #5B6070;
  --line: #E4E1DA;
  --body: #33363F;
  --shadow: rgba(21, 23, 30, .08);
  --link: #2A3FE8;
}

@media (prefers-color-scheme: dark) {
  :root {
    --blue-soft: #1B2040;
    --cream: #121317;
    --paper: #1A1C22;
    --ink: #F2F3F7;
    --muted: #9AA2B4;
    --line: #2B2E36;
    --body: #D3D7E1;
    --shadow: rgba(0, 0, 0, .45);
    --link: #93A5FF;
  }
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto,
               "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---- nav: identical to the landing page, so the pages read as one site ---- */

nav { display: flex; align-items: center; gap: 12px; padding: 22px 0; }
nav .mark { width: 34px; height: 34px; border-radius: 9px; }
nav .word { font-weight: 800; font-size: 1.1rem; letter-spacing: .12em; }
nav .spacer { margin-left: auto; }
nav a.plain { font-weight: 600; text-decoration: none; margin-right: 20px; color: var(--muted); }
nav a.plain:hover { color: var(--ink); }

.btn {
  display: inline-block; background: var(--ink); color: var(--cream);
  font-weight: 700; padding: 13px 24px; border-radius: 10px;
  text-decoration: none; border: 0; font-size: 1rem; cursor: pointer;
  font-family: inherit;
  box-shadow: 0 1px 2px var(--shadow), 0 8px 20px var(--shadow);
  transition: transform .12s ease, box-shadow .12s ease, opacity .12s ease;
}
.btn:hover { transform: translateY(-1px); opacity: .92; }

/* ---- the document panel ---- */

main {
  max-width: 46rem;
  margin: 8px auto 64px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 1px 2px var(--shadow), 0 20px 48px var(--shadow);
  padding: 44px 42px 50px;
}

h1 {
  font-size: clamp(1.9rem, 4vw, 2.5rem);
  line-height: 1.05;
  letter-spacing: -.025em;
  font-weight: 800;
  text-wrap: balance;
}

h2 {
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: -.015em;
  margin: 40px 0 12px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  text-wrap: balance;
}

h3 { font-size: 1.03rem; font-weight: 800; margin: 22px 0 6px; }

p { margin: 12px 0; color: var(--body); }
p:first-child { margin-top: 0; }

.sub { color: var(--muted); font-size: 1.05rem; margin: 10px 0 8px; max-width: 42em; }

.date {
  color: var(--ink); font-size: .72rem; font-weight: 800;
  letter-spacing: .13em; text-transform: uppercase;
  display: inline-block; padding: 5px 11px; margin-top: 8px;
  border-radius: 999px; background: var(--blue-soft);
}

a { color: var(--link); text-decoration: underline; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }

strong { font-weight: 800; color: var(--ink); }

code {
  background: var(--cream); border: 1px solid var(--line);
  padding: 1px 5px; border-radius: 4px; font-size: .875em;
}

ul, ol { padding-left: 1.2rem; margin: 12px 0; color: var(--body); }
li { margin: 7px 0; }

/* ---- call-out cards: soft surface, one accent rail each ---- */

.card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 22px;
  margin: 22px 0;
}
.card p:first-child { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }

/* .key = the thing to read if you read nothing else. .flag = the warning. */
.key { border-left: 4px solid var(--blue); }
.flag { border-left: 4px solid var(--coral); }

/* ---- tables ---- */

table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.scroll { overflow-x: auto; margin: 18px 0; border: 1px solid var(--line); border-radius: 14px; }
.scroll table { border: 0; }
th, td {
  text-align: left; padding: 11px 14px;
  border-bottom: 1px solid var(--line); vertical-align: top; color: var(--body);
}
th {
  font-weight: 800; background: var(--blue-soft); color: var(--ink);
  border-bottom: 1px solid var(--line);
  font-size: .76rem; letter-spacing: .09em; text-transform: uppercase;
}
tr:last-child td { border-bottom: 0; }

/* ---- forms (delete-account) ---- */

label { display: block; font-weight: 800; margin: 18px 0 6px; }
input, textarea {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--paper); color: var(--ink); font: inherit;
}
input:focus, textarea:focus {
  outline: 2px solid var(--blue); outline-offset: 1px;
}
textarea { min-height: 84px; resize: vertical; }
form .btn { margin-top: 20px; }

/* ---- footer: the landing page's, verbatim in structure ---- */

footer.site {
  background: #14161C; color: #C9CEDA;
  border-top: 1px solid #14161C; padding: 40px 0 48px;
}
footer.site .wrap { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
footer.site a { color: #fff; text-decoration: none; font-weight: 600; }
footer.site a:hover { text-decoration: underline; }
footer.site .sp { margin-left: auto; }
footer.site strong { color: #fff; letter-spacing: .12em; }
footer.site .fine { font-size: .85rem; color: #8A91A1; margin-top: 18px; max-width: 52em; }

@media (max-width: 860px) {
  body { font-size: 16px; }
  main { padding: 30px 24px 36px; margin-inline: 16px; border-radius: 16px; }
  nav a.plain { display: none; }
}
