/* hilalpe.com — legal / policy pages (privacy, account deletion)
   Document layout on the brand palette. Shares tokens with styles.css. */

@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../assets/fonts/outfit-var-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../assets/fonts/outfit-var-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --ink: #10122E;
  --green-deep: #0B7A52;
  --green: #2BB183;
  --mint: #5ED9A4;
  --mint-tint: #D6F2E3;
  --hero-bg: #DFF3E8;
  --surface: #FFFFFF;
  --ground: #F7FAF8;
  --border: #DDE7E1;
  --text: #23303A;
  --muted: #566A60;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--ground);
  color: var(--text);
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--green-deep); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--ink); }

/* ---------- Header ---------- */
.doc-nav {
  background: var(--hero-bg);
  border-bottom: 1px solid var(--border);
}
.doc-nav-inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; }
.brand:hover { color: inherit; }
.brand span {
  font-size: 21px; font-weight: 700; color: var(--ink); letter-spacing: -0.02em;
}
.doc-nav a.back {
  font-size: 15px; font-weight: 600; color: var(--ink); text-decoration: none;
}
.doc-nav a.back:hover { color: var(--green-deep); }

/* ---------- Document ---------- */
.doc {
  max-width: 820px;
  margin: 0 auto;
  padding: 56px 28px 96px;
}
.doc-head { border-bottom: 2px solid var(--ink); padding-bottom: 26px; margin-bottom: 36px; }
.eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--green-deep); margin-bottom: 14px;
}
h1 {
  font-size: clamp(32px, 5vw, 44px);
  font-weight: 800; color: var(--ink);
  letter-spacing: -0.03em; line-height: 1.06;
  text-wrap: balance;
  margin-bottom: 16px;
}
.dates {
  display: flex; flex-direction: column; gap: 2px;
  font-size: 14.5px; color: var(--muted);
}
.dates b { color: var(--text); font-weight: 600; }

.lead { font-size: 19px; line-height: 1.55; color: var(--muted); margin-bottom: 34px; }

h2 {
  font-size: 23px; font-weight: 700; color: var(--ink);
  letter-spacing: -0.02em; line-height: 1.25;
  margin: 44px 0 14px; scroll-margin-top: 20px;
}
h3 {
  font-size: 17.5px; font-weight: 700; color: var(--ink);
  margin: 28px 0 10px;
}
p { margin-bottom: 14px; max-width: 68ch; }
ul, ol { margin: 0 0 16px; padding-left: 22px; max-width: 68ch; }
li { margin-bottom: 9px; }
li:last-child { margin-bottom: 0; }
strong { font-weight: 700; color: var(--ink); }

/* ---------- Table of contents ---------- */
.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 26px;
  margin-bottom: 40px;
}
.toc h2 {
  font-size: 12px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted); margin: 0 0 12px;
}
.toc ol {
  margin: 0; padding-left: 20px;
  columns: 2; column-gap: 32px; max-width: none;
}
.toc li { margin-bottom: 5px; font-size: 15px; break-inside: avoid; }
.toc a { text-decoration: none; color: var(--text); }
.toc a:hover { color: var(--green-deep); text-decoration: underline; }

/* ---------- Callouts ---------- */
.callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--green-deep);
  border-radius: 10px;
  padding: 20px 24px;
  margin: 24px 0;
}
.callout p:last-child { margin-bottom: 0; }
.callout.warm { border-left-color: #C08A2E; }

/* ---------- Tables ---------- */
.tablewrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  margin: 20px 0 24px;
}
table { border-collapse: collapse; width: 100%; font-size: 15.5px; }
th, td {
  padding: 12px 18px; text-align: left;
  border-bottom: 1px solid var(--border); vertical-align: top;
}
th {
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted); background: var(--ground);
  white-space: nowrap;
}
tr:last-child td { border-bottom: none; }

/* ---------- Deletion request steps ---------- */
.steps { list-style: none; padding: 0; counter-reset: step; max-width: none; }
.steps > li {
  counter-increment: step;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 26px 22px 68px;
  margin-bottom: 14px;
  position: relative;
}
.steps > li::before {
  content: counter(step);
  position: absolute; left: 24px; top: 22px;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--green-deep); color: #fff;
  font-size: 14px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.steps h3 { margin: 0 0 8px; }
.steps p:last-child { margin-bottom: 0; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0 8px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; padding: 14px 30px;
  font-size: 16px; font-weight: 700; text-decoration: none;
  white-space: nowrap;
}
.btn-primary { background: var(--green-deep); color: #fff; }
.btn-primary:hover { background: #096644; color: #fff; }
.btn-secondary { background: var(--mint-tint); color: var(--green-deep); }
.btn-secondary:hover { background: #BFEAD3; color: var(--green-deep); }

/* ---------- Footer ---------- */
.doc-foot {
  background: var(--ink);
  color: #C9D9CF;
}
.doc-foot-inner {
  max-width: 820px; margin: 0 auto;
  padding: 34px 28px;
  display: flex; flex-wrap: wrap; gap: 14px 32px;
  justify-content: space-between; align-items: center;
  font-size: 14px;
}
.doc-foot a { color: var(--mint); text-decoration: none; }
.doc-foot a:hover { text-decoration: underline; }
.doc-foot-links { display: flex; gap: 22px; flex-wrap: wrap; }

@media (max-width: 620px) {
  body { font-size: 16px; }
  .doc { padding: 36px 20px 64px; }
  .doc-nav-inner { padding: 16px 20px; }
  .toc ol { columns: 1; }
  .steps > li { padding: 20px 20px 20px 60px; }
  .steps > li::before { left: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
