/* Nomi's legal pages. Colours are design/tokens.json's; fonts are the app's own OFL faces,
   served from this folder so reading the privacy policy sends nothing to a third party. */

@font-face {
  font-family: "Fraunces";
  src: url("fonts/Fraunces.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("fonts/DMSans.ttf") format("truetype");
  font-weight: 100 1000;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #262A56;
  --ink-2: #4D5180;
  --mist: #EEF0FB;
  --mochi: #FFF7EE;
  --peri: #ADBCE9;
  --butter: #FFD66B;
  --line: #D9DDF2;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  padding: 0 16px;
  background: var(--mist);
  color: var(--ink);
  font: 400 17px/1.65 "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 680px; margin: 0 auto; padding: 48px 0 88px; }

.mark {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none;
  font: 800 22px/1 "Fraunces", Georgia, serif;
  font-variation-settings: "SOFT" 100;
}
.mark svg { display: block; }

.sheet {
  margin-top: 28px;
  background: var(--mochi);
  border: 2px solid var(--ink);
  border-radius: 24px;
  box-shadow: 0 5px 0 var(--ink);
  padding: 32px 28px 36px;
}

h1, h2 { font-family: "Fraunces", Georgia, serif; font-variation-settings: "SOFT" 100; }

h1 {
  font-weight: 800; letter-spacing: -0.03em;
  font-size: clamp(34px, 8vw, 44px); line-height: 1.05; margin: 0 0 14px;
}
h1 mark {
  color: inherit; padding: 0 0.12em; border-radius: 0.2em;
  background: linear-gradient(transparent 52%, var(--butter) 52%, var(--butter) 92%, transparent 92%);
}

.lead { color: var(--ink-2); font-size: 18px; line-height: 1.55; margin: 0 0 8px; }
.date { color: var(--ink-2); font-size: 14px; margin: 0; }

h2 { font-weight: 700; letter-spacing: -0.02em; font-size: 23px; line-height: 1.2; margin: 38px 0 10px; }
h3 { font-weight: 700; font-size: 18px; line-height: 1.3; margin: 26px 0 6px; }

p { margin: 0 0 16px; }
ul { margin: 0 0 16px; padding-left: 22px; }
li { margin: 0 0 9px; }
strong { font-weight: 700; }

a {
  color: var(--ink); text-decoration: underline;
  text-decoration-color: var(--peri); text-decoration-thickness: 2px; text-underline-offset: 3px;
}
a:hover { text-decoration-color: var(--butter); }

.rule { border: 0; border-top: 2px dashed var(--line); margin: 30px 0 0; }

.scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.data { width: 100%; min-width: 520px; border-collapse: collapse; margin: 4px 0 18px; }
.data th {
  font-weight: 700; font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase;
  text-align: left; color: var(--ink-2); padding: 0 14px 10px 0; border-bottom: 2px solid var(--ink);
}
.data td {
  font-size: 15px; line-height: 1.5; vertical-align: top;
  padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line);
}
.data th:last-child, .data td:last-child { padding-right: 0; }
.data tr:last-child td { border-bottom: 0; }

.note {
  background: #FFFFFF; border: 2px solid var(--ink); border-radius: 16px;
  padding: 14px 16px; margin: 0 0 16px;
}

footer { margin-top: 32px; color: var(--ink-2); font-size: 14px; line-height: 1.75; }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; }

@media (max-width: 480px) {
  .wrap { padding-top: 32px; }
  .sheet { padding: 24px 18px 28px; border-radius: 20px; }
}
