/* ─────────────────────────────────────────
   www.ekphoto.co.za/privacy — standalone legal page.
   Tokens and idiom mirror the main site's css/site.css and the section
   one-pagers. If the brand palette changes there, change it here too.
   No JS: the nav is solid from the top (there is no dark hero behind it) and
   the contents links rely on html { scroll-behavior: smooth }.
───────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 18px; overflow-x: hidden; }

:root {
  --ink:       #1A1714;
  --ink-80:    rgba(26,23,20,.82);
  --ink-60:    rgba(26,23,20,.60);
  --ink-40:    rgba(26,23,20,.40);
  --ink-18:    rgba(26,23,20,.18);
  --ink-08:    rgba(26,23,20,.08);
  --paper:     #F7F4EF;
  --paper-b:   #EFEBE3;
  --paper-c:   #E6E1D6;
  --cream:     #FBF9F5;
  --white:     #FFFDFA;
  --gold:      #9B7A4E;
  --gold-lt:   rgba(155,122,78,.10);
  --gold-md:   rgba(155,122,78,.30);

  --nav-h: 76px;
  --ease: cubic-bezier(.22,.61,.36,1);
  --serif: 'Cormorant Garamond', 'EB Garamond', 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, sans-serif;
}

body {
  font-family: var(--sans);
  font-weight: 300;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; }
::selection { background: var(--gold); color: var(--cream); }

/* ─────────────────────────────────────────
   NAV — always paper. Cloned from the section pages' .site-nav.scrolled state.
───────────────────────────────────────── */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  height: var(--nav-h); padding: 0 56px;
  background: rgba(247,244,239,.92);
  backdrop-filter: blur(28px) saturate(1.2);
  -webkit-backdrop-filter: blur(28px) saturate(1.2);
  border-bottom: 1px solid var(--ink-08);
}
.nav-brand {
  display: inline-flex; align-items: center; gap: 22px;
  font-family: var(--serif); font-size: 16px; font-weight: 400;
  text-decoration: none;
}
.nav-brand-img {
  display: block; height: 48px; width: auto;
  max-width: none; flex: none;
  margin: -8px 0 -8px -12px;
}
.nav-brand-text {
  letter-spacing: .28em; text-transform: uppercase; color: var(--ink);
}
.nav-brand .dot { color: var(--gold); }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a {
  font-size: 11.5px; font-weight: 400; letter-spacing: .28em; text-transform: uppercase;
  color: var(--ink-60); text-decoration: none;
  transition: color .4s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.nav-cta {
  border: 1px solid var(--ink); padding: 11px 24px; color: var(--ink);
  transition: color .4s, border-color .4s, background .4s;
}
.nav-links a.nav-cta:hover { background: var(--gold); border-color: var(--gold); color: var(--cream); }

/* ─────────────────────────────────────────
   PAGE HEAD
───────────────────────────────────────── */
.doc-head {
  padding: calc(var(--nav-h) + 96px) 56px 0;
  max-width: 1100px; margin: 0 auto;
}
.section-eye {
  display: flex; align-items: center; gap: 14px;
  font-size: 11.5px; font-weight: 400; letter-spacing: .42em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 30px;
}
.section-eye::before { content: ''; width: 28px; height: 1px; background: var(--gold); }
.doc-h1 {
  font-family: var(--serif);
  font-size: clamp(30px, 4.2vw, 52px);
  font-weight: 300; line-height: 1.12; letter-spacing: -.01em;
  max-width: 17em;
}
.doc-meta {
  margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--ink-08);
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-40);
}
.doc-lede {
  margin-top: 34px; max-width: 34em;
  font-size: 17.5px; line-height: 1.78; color: var(--ink-80);
}

/* ─────────────────────────────────────────
   LAYOUT — contents rail beside the prose on desktop, stacked below md.
───────────────────────────────────────── */
.doc-wrap {
  display: grid; grid-template-columns: 250px 1fr; gap: 72px;
  max-width: 1100px; margin: 0 auto; padding: 74px 56px 110px;
  align-items: start;
}
.doc-toc { position: sticky; top: calc(var(--nav-h) + 40px); }
.doc-toc h2 {
  font-size: 11px; font-weight: 400; letter-spacing: .32em; text-transform: uppercase;
  color: var(--ink-40); margin-bottom: 18px;
}
.doc-toc ol { list-style: none; counter-reset: toc; }
.doc-toc li { counter-increment: toc; margin-bottom: 11px; }
.doc-toc a {
  display: block; font-size: 13.5px; line-height: 1.45;
  color: var(--ink-60); text-decoration: none; transition: color .3s;
}
.doc-toc a::before {
  content: counter(toc) '. '; color: var(--gold); font-variant-numeric: tabular-nums;
}
.doc-toc a:hover { color: var(--ink); }

/* ─────────────────────────────────────────
   PROSE
───────────────────────────────────────── */
.doc-body { max-width: 40em; }
.doc-body section { scroll-margin-top: calc(var(--nav-h) + 30px); padding-bottom: 54px; }
.doc-body section + section { border-top: 1px solid var(--ink-08); padding-top: 54px; }
.doc-body h2 {
  font-family: var(--serif);
  font-size: 27px; font-weight: 400; line-height: 1.25;
  margin-bottom: 22px;
}
.doc-body h2 .num {
  display: block; font-family: var(--sans);
  font-size: 11px; font-weight: 400; letter-spacing: .32em;
  color: var(--gold); margin-bottom: 12px;
}
.doc-body h3 {
  font-size: 14px; font-weight: 500; letter-spacing: .04em;
  margin: 32px 0 12px; color: var(--ink);
}
.doc-body p { font-size: 15.5px; line-height: 1.82; color: var(--ink-80); margin-bottom: 16px; }
.doc-body p:last-child, .doc-body ul:last-child, .doc-body dl:last-child { margin-bottom: 0; }
.doc-body a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold-md);
  text-underline-offset: 3px; transition: text-decoration-color .3s; }
.doc-body a:hover { text-decoration-color: var(--gold); }
.doc-body strong { font-weight: 500; color: var(--ink); }

.doc-body ul { list-style: none; margin: 0 0 18px; }
.doc-body ul li {
  position: relative; padding-left: 22px; margin-bottom: 11px;
  font-size: 15.5px; line-height: 1.75; color: var(--ink-80);
}
.doc-body ul li::before {
  content: ''; position: absolute; left: 0; top: .78em;
  width: 8px; height: 1px; background: var(--gold);
}

/* Definition rows: purpose -> basis, cookie -> what it does, item -> period. */
.doc-rows { border-top: 1px solid var(--ink-08); margin: 4px 0 18px; }
.doc-rows > div {
  display: grid; grid-template-columns: 1fr 1.35fr; gap: 24px;
  padding: 15px 0; border-bottom: 1px solid var(--ink-08);
}
.doc-rows dt { font-size: 14px; font-weight: 500; line-height: 1.55; color: var(--ink); }
.doc-rows dd { font-size: 14px; line-height: 1.66; color: var(--ink-60); }
.doc-rows dd code {
  font-family: var(--sans); font-size: 12.5px; letter-spacing: .04em;
  background: var(--gold-lt); padding: 1px 6px; border-radius: 2px; color: var(--ink-80);
}

/* Contact / address card */
.doc-card {
  background: var(--cream); border: 1px solid var(--ink-08);
  padding: 30px 32px; margin: 6px 0 18px;
}
.doc-card p { margin-bottom: 8px; font-size: 15px; }
.doc-card p:last-child { margin-bottom: 0; }
.doc-card .label {
  font-size: 10.5px; letter-spacing: .3em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 14px;
}

.doc-note {
  border-left: 2px solid var(--gold-md); padding: 4px 0 4px 22px; margin: 22px 0;
}
.doc-note p { font-size: 14.5px; color: var(--ink-60); margin-bottom: 8px; }
.doc-note p:last-child { margin-bottom: 0; }

/* ─────────────────────────────────────────
   FOOTER
───────────────────────────────────────── */
.site-footer {
  display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center;
  padding: 42px 56px; border-top: 1px solid var(--ink-08); background: var(--paper);
}
.footer-brand {
  font-family: var(--serif);
  font-size: 17px; font-weight: 400; letter-spacing: .26em; text-transform: uppercase;
  color: var(--ink-60);
}
.footer-brand .dot { color: var(--gold); }
.footer-center { display: flex; gap: 28px; justify-content: center; list-style: none; }
.footer-center a {
  font-size: 11.5px; font-weight: 300; letter-spacing: .24em; text-transform: uppercase;
  color: var(--ink-40); text-decoration: none; transition: color .3s;
}
.footer-center a:hover { color: var(--ink); }
.footer-right {
  font-size: 11.5px; font-weight: 300; letter-spacing: .24em; text-transform: uppercase;
  color: var(--ink-40); text-align: right;
}

/* ─────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */
@media (max-width: 1000px) {
  .doc-wrap { grid-template-columns: 1fr; gap: 46px; }
  .doc-toc { position: static; border-bottom: 1px solid var(--ink-08); padding-bottom: 34px; }
  .doc-toc ol { columns: 2; column-gap: 34px; }
}
@media (max-width: 760px) {
  html { font-size: 17px; }
  .site-nav { padding: 0 28px; }
  .nav-links { gap: 20px; }
  .nav-hide-sm { display: none; }
  .doc-head { padding: calc(var(--nav-h) + 58px) 28px 0; }
  .doc-wrap { padding: 48px 28px 80px; }
  .doc-toc ol { columns: 1; }
  .doc-rows > div { grid-template-columns: 1fr; gap: 6px; }
  .doc-card { padding: 24px; }
  .site-footer { grid-template-columns: 1fr; gap: 20px; justify-items: center; padding: 40px 28px; }
  .footer-center { flex-wrap: wrap; gap: 18px; justify-content: center; }
  .footer-right { text-align: center; }
}

@media (max-width: 640px) {
  .site-nav { padding: 0 20px; }
  .nav-brand-text { display: none; }
}
