/* Shared styles for the legal pages (/privacy, /terms, /delete-account,
   /delete-data). Colours and fonts match the landing page's design tokens. */
:root {
  --dark:        #1A1209;
  --dark-warm:   #251C10;
  --dark-mid:    #3A2E1E;
  --parchment:   #F5ECD7;
  --terracotta:  #C67A4B;
  --terra-hover: #D48B5C;
  --gold:        #C4A55A;
  --text-dim:    #A89880;
  --text-body:   #D4C8B4;

  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body:    'Source Sans 3', 'Segoe UI', system-ui, sans-serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-body);
  background-color: var(--dark);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--terracotta); text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
a:hover { color: var(--terra-hover); }
a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }

/* ---------- Header ---------- */
.top {
  border-bottom: 1px solid var(--dark-mid);
  background-color: var(--dark-warm);
}
.top-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--parchment);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
}
.brand img { width: 32px; height: 32px; border-radius: 8px; display: block; }
.brand:hover { color: var(--parchment); }

.lang { display: flex; gap: 6px; }
.lang a {
  color: var(--text-body);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 5px 12px;
  border: 1px solid var(--dark-mid);
  border-radius: 999px;
}
.lang a:hover { color: var(--parchment); border-color: var(--text-dim); }

/* ---------- Document ---------- */
.doc {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 16px 64px;
}
.doc h1 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--parchment);
  font-size: clamp(28px, 6vw, 40px);
  line-height: 1.2;
  /* Room before the first section's h2, which has no top margin. */
  margin-bottom: 36px;
}
.doc h2 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--parchment);
  font-size: 24px;
  line-height: 1.3;
  margin: 40px 0 12px;
}
.doc section > h2:first-child { margin-top: 0; }
.doc h3 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--parchment);
  font-size: 19px;
  line-height: 1.35;
  margin: 28px 0 8px;
}
.doc h4 {
  color: var(--parchment);
  font-size: 17px;
  font-weight: 600;
  margin: 20px 0 6px;
}
.doc p { margin: 0 0 14px; }
.doc ul, .doc ol { margin: 0 0 16px 22px; }
.doc li { margin-bottom: 6px; }
.doc .meta { color: var(--text-dim); font-size: 15px; margin-bottom: 20px; }
.doc strong { color: var(--parchment); font-weight: 600; }

.divider {
  border: 0;
  border-top: 1px solid var(--dark-mid);
  margin: 56px 0;
}

/* ---------- Footer ---------- */
.foot {
  border-top: 1px solid var(--dark-mid);
  padding: 28px 16px 40px;
  text-align: center;
  font-size: 14px;
  color: var(--text-dim);
}
.foot ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  margin-bottom: 12px;
}
.foot a { color: var(--text-body); text-decoration: none; }
.foot a:hover { color: var(--parchment); text-decoration: underline; }
