/* Shared styles for the Kaya policy pages (privacy, cookies, terms, accessibility). */
@font-face { font-family: 'Garet'; src: url('/fonts/Garet-Book.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Garet'; src: url('/fonts/Garet-Heavy.ttf') format('truetype'); font-weight: 700; font-display: swap; }

:root {
  color-scheme: dark;
  --kaya-ground: #2a211d;
  --kaya-surface: #3a2d28;
  --kaya-surface-raised: #493832;
  --kaya-primary: #cc7850;
  --kaya-primary-light: #e0a181;
  --kaya-ochre: #d3a34a;
  --kaya-ochre-tint: rgba(211, 163, 74, 0.15);
  --kaya-text: #faf6ef;
  --kaya-muted: #d5c5b5;
  --kaya-border: #5a463d;
}
:root[data-kaya-theme='light'] {
  color-scheme: light;
  --kaya-ground: #faf6ef;
  --kaya-surface: #fffdfc;
  --kaya-surface-raised: #f0e9de;
  --kaya-primary: #a54e2c;
  --kaya-primary-light: #8c3f27;
  --kaya-ochre: #8f5f22;
  --kaya-ochre-tint: rgba(143, 95, 34, 0.12);
  --kaya-text: #241d1a;
  --kaya-muted: #6b5d55;
  --kaya-border: #d9cab8;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--kaya-ground);
  color: var(--kaya-text);
  font-family: 'Garet', Poppins, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 1.0625rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--kaya-primary-light); text-underline-offset: 0.22em; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--kaya-ochre); outline-offset: 4px; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--kaya-surface); padding: .5rem 1rem; z-index: 10; }

.site-header, .site-footer { border-color: var(--kaya-border); border-style: solid; border-width: 0; }
.site-header { border-bottom-width: 1px; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1rem; padding-bottom: 1rem; }
.site-header img { display: block; height: 3rem; width: auto; }
.logo-light { display: none !important; }
:root[data-kaya-theme='light'] .logo-dark { display: none !important; }
:root[data-kaya-theme='light'] .logo-light { display: block !important; }
.back { font-size: .95rem; color: var(--kaya-muted); }

.wrap { width: min(46rem, 100% - 2rem); margin: 0 auto; }
main { padding: 2.5rem 0 4rem; }
.eyebrow { color: var(--kaya-ochre); font-size: .85rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin: 0; }
h1 { font-family: 'Playfair Display', Georgia, serif; font-weight: 600; font-size: clamp(2rem, 6vw, 2.9rem); line-height: 1.2; margin: .5rem 0 1rem; }
h2 { font-size: 1.3rem; line-height: 1.4; margin: 2.6rem 0 .6rem; padding-top: 1.6rem; border-top: 1px solid var(--kaya-border); }
h3 { font-size: 1.05rem; margin: 1.6rem 0 .3rem; }
p, li { color: var(--kaya-muted); }
p { margin: .7rem 0; }
strong { color: var(--kaya-text); }
ul { padding-left: 1.25rem; }
li { margin: .45rem 0; }
.lead { font-size: 1.2rem; color: var(--kaya-text); }
.updated { font-size: .95rem; }

.note { border-left: 3px solid var(--kaya-ochre); background: var(--kaya-surface); padding: 1rem 1.25rem; margin: 1.5rem 0; border-radius: 0 .75rem .75rem 0; }
.note p { margin: .3rem 0; }

.placeholder { background: var(--kaya-ochre-tint); color: var(--kaya-text); border: 1px dashed var(--kaya-ochre); border-radius: .3rem; padding: 0 .3rem; font-weight: 700; }

.table-scroll { overflow-x: auto; margin: 1rem 0; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; vertical-align: top; padding: .7rem .6rem; border-bottom: 1px solid var(--kaya-border); }
th { color: var(--kaya-text); font-weight: 700; }
td { color: var(--kaya-muted); }
td code { color: var(--kaya-text); font-size: .9em; word-break: break-all; }

.button { display: inline-block; cursor: pointer; font: inherit; font-weight: 700; border-radius: 999px; padding: .7rem 1.2rem; border: 0; background: var(--kaya-primary); color: #2a211d; }
:root[data-kaya-theme='light'] .button { color: #fffdfc; }

.site-footer { border-top-width: 1px; background: var(--kaya-surface); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 1.5rem; padding-top: 1.5rem; padding-bottom: 1.5rem; font-size: .9rem; }
.site-footer p { margin: 0; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: .5rem 1rem; }
.site-footer a, .site-footer button { color: var(--kaya-muted); }
.site-footer button { background: none; border: 0; padding: 0; font: inherit; text-decoration: underline; text-underline-offset: .22em; cursor: pointer; }
.site-footer a[aria-current='page'] { color: var(--kaya-text); font-weight: 700; text-decoration: none; }
