:root {
  --bg: #f6f8f8;
  --surface: #ffffff;
  --text: #13201f;
  --muted: #586664;
  --accent: #0f8b8d;
  --accent-soft: #e2f3f3;
  --border: #dfe6e5;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1413;
    --surface: #152020;
    --text: #e6eeed;
    --muted: #9aaba9;
    --accent: #4cc6c8;
    --accent-soft: #173233;
    --border: #243231;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }

/* Header / footer */
.site-header { border-bottom: 1px solid var(--border); background: var(--surface); }
.site-header .wrap { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }

.site-footer { margin-top: 64px; padding: 32px 0 48px; border-top: 1px solid var(--border); color: var(--muted); font-size: 15px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 12px; }
.site-footer a { color: var(--muted); }

/* Home */
.hero { text-align: center; padding: 72px 0 40px; }
.hero img { width: 112px; height: 112px; border-radius: 26px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12); }
.hero h1 { font-size: clamp(34px, 7vw, 48px); line-height: 1.1; margin: 24px 0 8px; letter-spacing: -0.02em; }
.hero p { color: var(--muted); font-size: 19px; margin: 0; }
.badge { display: inline-block; margin-top: 20px; padding: 6px 14px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-weight: 600; font-size: 15px; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin: 24px 0; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 20px; }
.card h2 { font-size: 18px; margin: 0 0 6px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }

/* Documents */
.doc { padding-top: 40px; }
.doc h1 { font-size: clamp(30px, 6vw, 40px); line-height: 1.15; margin: 0 0 6px; letter-spacing: -0.01em; }
.doc .meta { color: var(--muted); margin: 0 0 32px; }
.doc h2 { font-size: 22px; margin: 40px 0 8px; }
.doc h3 { font-size: 18px; margin: 24px 0 6px; }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.note { background: var(--accent-soft); border-radius: 12px; padding: 16px 18px; margin: 24px 0; }

.table-scroll { overflow-x: auto; margin: 16px 0; }
table { border-collapse: collapse; width: 100%; font-size: 15px; background: var(--surface); }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border: 1px solid var(--border); }
th { background: var(--accent-soft); }

/* Narrow screens: each table row becomes a stacked card with labelled fields. */
@media (max-width: 640px) {
  .table-scroll table, .table-scroll tbody, .table-scroll tr, .table-scroll td { display: block; width: 100%; }
  .table-scroll table { background: none; }
  .table-scroll thead { display: none; }
  .table-scroll tr { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; margin-bottom: 12px; overflow: hidden; }
  .table-scroll td { border: none; border-top: 1px solid var(--border); }
  .table-scroll td:first-child { border-top: none; background: var(--accent-soft); font-weight: 600; }
  .table-scroll td:not(:first-child)::before { display: block; margin-bottom: 2px; font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
  .t-data td:nth-child(2)::before { content: "Why we use it"; }
  .t-data td:nth-child(3)::before { content: "Legal basis"; }
  .t-providers td:nth-child(2)::before { content: "Purpose"; }
  .t-providers td:nth-child(3)::before { content: "Data involved"; }
}
