/* Art of Fauna: Cozy Puzzles+ — Privacy and Data Policy */

:root {
  --bg: #ebe6de;
  --surface: #f6f3ee;
  --border: #d9cfc0;
  --text: #2c2422;
  --muted: #6d5f57;
  --accent: #844a46;
  --accent-soft: #cead98;
  --shadow: 0 1px 2px rgba(44, 36, 34, 0.06), 0 8px 24px rgba(44, 36, 34, 0.05);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1b1715;
    --surface: #241f1c;
    --border: #3b322d;
    --text: #ece5dc;
    --muted: #a99b90;
    --accent: #d99a94;
    --accent-soft: #6d4a38;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Lora", Georgia, "Times New Roman", serif;
  font-size: 1.0625rem;
  line-height: 1.7;
  hyphens: auto;
}

.wrap {
  width: 100%;
  max-width: 46rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Accessibility */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--surface);
  color: var(--text);
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0 0 10px 0;
  z-index: 10;
}

.skip-link:focus {
  left: 0;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  overflow-wrap: anywhere;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

/* Header */

.page-header {
  padding: 3.5rem 0 2.25rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2.5rem;
}

.eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

h1 {
  margin: 0;
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
  font-weight: 700;
}

.updated {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

/* Table of contents */

.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem 1.5rem 1.5rem;
  box-shadow: var(--shadow);
  margin-bottom: 3rem;
}

.toc h2 {
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  border: 0;
  padding: 0;
}

.toc ol {
  margin: 0;
  padding-left: 1.25rem;
}

.toc li {
  margin: 0.25rem 0;
}

.toc a {
  text-decoration: none;
}

.toc a:hover {
  text-decoration: underline;
}

/* Sections */

section {
  margin-bottom: 3rem;
  scroll-margin-top: 1.5rem;
}

h2 {
  font-size: 1.375rem;
  line-height: 1.3;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0 0 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent-soft);
}

h3 {
  font-size: 1.125rem;
  margin: 2rem 0 0.75rem;
}

.num {
  color: var(--accent);
  margin-right: 0.4em;
}

p {
  margin: 0 0 1.1rem;
}

.clause {
  font-weight: 700;
  color: var(--accent);
  margin-right: 0.35em;
  font-variant-numeric: tabular-nums;
}

.note {
  background: var(--surface);
  border-left: 4px solid var(--accent-soft);
  border-radius: 0 10px 10px 0;
  padding: 0.9rem 1.1rem;
  margin: 0 0 1.1rem;
  color: var(--muted);
}

ul,
ol.links,
ol.rights {
  margin: 0 0 1.1rem;
  padding-left: 1.4rem;
}

li {
  margin-bottom: 0.6rem;
}

li::marker {
  color: var(--accent);
}

/* Processor table */

.table-scroll {
  overflow-x: auto;
  margin: 0 0 1.5rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

th,
td {
  text-align: left;
  padding: 0.85rem 1rem;
  vertical-align: top;
}

thead th {
  background: var(--accent-soft);
  color: var(--text);
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

tbody td {
  border-top: 1px solid var(--border);
}

/* Contact */

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow);
  font-style: normal;
  line-height: 1.8;
}

/* Footer */

.page-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0 3rem;
  color: var(--muted);
  font-size: 0.875rem;
}

.page-footer p {
  margin: 0;
}

/* Print */

@media print {
  :root {
    --bg: #fff;
    --surface: #fff;
    --text: #000;
    --muted: #333;
    --accent: #000;
    --accent-soft: #999;
    --shadow: none;
  }

  .toc,
  .skip-link,
  .page-footer {
    display: none;
  }

  body {
    font-size: 11pt;
  }

  section {
    break-inside: auto;
  }

  h2,
  h3 {
    break-after: avoid;
  }

  a {
    text-decoration: none;
  }
}
