/* ---------------------------------------------------------------------------
   Cirova — website styles
   ---------------------------------------------------------------------------
   Mirrors the app's design system (constants/theme.ts + rules/design-style.md):
   warm linen ground, terracotta accent, SF Pro, whitespace as the design.

   Palette is taken verbatim from the app so the site and the product cannot
   drift apart:
     light  background #F5F4F0 · surface #FFFFFF · accent #C1622F
            text #1D1D1F / #4E4E52 / #6A6A6E · border #E8E6E0
     dark   background #1C1714 · accent #E07848

   No build step, no framework, no external requests — every font is a system
   font and every colour is inline here, so these pages render identically on
   any static host and work offline.
   --------------------------------------------------------------------------- */

:root {
  --bg: #F5F4F0;
  --surface: #FFFFFF;
  --accent: #C1622F;
  --accent-soft: #FAEEE8;
  --text-primary: #1D1D1F;
  --text-secondary: #4E4E52;
  --text-tertiary: #6A6A6E;
  --border: #E8E6E0;
  --radius: 20px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1C1714;
    --surface: #26201C;
    --accent: #E07848;
    --accent-soft: #3A2A22;
    --text-primary: #F5F2EF;
    --text-secondary: #C4BCB6;
    --text-tertiary: #9A918B;
    --border: #38302B;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}

/* ── Header ─────────────────────────────────────────────────────────────── */

header { margin-bottom: 56px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: 19px;
}

.brand .mark {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 3px solid var(--accent);
  /* The Cirova mark is an UNCLOSED gauge — 306° of arc, 54° gap. The gap is
     the point of the brand, so it is reproduced here rather than drawn as a
     plain ring. */
  border-right-color: transparent;
  transform: rotate(-45deg);
  display: inline-block;
}

h1 {
  font-size: 40px;
  line-height: 1.15;
  letter-spacing: -0.022em;
  font-weight: 600;
  margin: 40px 0 12px;
}

.lede {
  font-size: 19px;
  color: var(--text-secondary);
  margin: 0;
}

/* ── Content ────────────────────────────────────────────────────────────── */

h2 {
  font-size: 24px;
  letter-spacing: -0.015em;
  font-weight: 600;
  margin: 48px 0 16px;
}

h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 32px 0 8px;
}

p { margin: 0 0 16px; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

ul, ol { padding-left: 22px; margin: 0 0 16px; }
li { margin-bottom: 8px; }

.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 28px;
  margin: 24px 0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
}

@media (prefers-color-scheme: dark) {
  .card { box-shadow: none; border: 1px solid var(--border); }
}

.card h3:first-child { margin-top: 0; }

/* Tables (legal pages: legal bases, providers, retention). Scroll sideways on a
   phone rather than squeezing four columns into 360px. */
.table-wrap {
  overflow-x: auto;
  margin: 8px 0 24px;
  background: var(--surface);
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
}
@media (prefers-color-scheme: dark) {
  .table-wrap { box-shadow: none; border: 1px solid var(--border); }
}
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 12px 14px; }
th {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-tertiary);
  border-bottom: 1px solid var(--border);
}
td { border-bottom: 1px solid var(--border); color: var(--text-secondary); }
tr:last-child td { border-bottom: none; }
td:first-child { color: var(--text-primary); }
.table-wrap table { min-width: 560px; }

.contact {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 14px;
  padding: 14px 22px;
  font-weight: 600;
  margin: 8px 0 4px;
}

.muted { color: var(--text-tertiary); font-size: 15px; }

.steps { counter-reset: step; list-style: none; padding: 0; }

.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 44px;
  margin-bottom: 20px;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Footer ─────────────────────────────────────────────────────────────── */

footer {
  margin-top: 72px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  color: var(--text-tertiary);
  font-size: 15px;
}

footer a { color: var(--text-secondary); }

footer nav { margin-bottom: 12px; display: flex; gap: 20px; flex-wrap: wrap; }

@media (max-width: 600px) {
  .wrap { padding: 40px 20px 72px; }
  h1 { font-size: 32px; }
  body { font-size: 16px; }
}
