/*
 * Shared styles for the Privacy Policy and Terms pages.
 * CSS variables are reusable design values: changing a color here updates
 * every page that uses that variable.
 */
:root {
  color-scheme: light;
  --cream: #fff6d9;
  --gold: #ffd35c;
  --amber: #ffb300;
  --ink: #1c1300;
  --ink-soft: #655c49;
  --paper: rgba(255, 255, 255, 0.78);
  --line: rgba(28, 19, 0, 0.13);
  --shadow: 0 22px 70px rgba(111, 76, 0, 0.13);
  --radius: 24px;
  --content: 760px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 10%, rgba(255, 255, 255, 0.86), transparent 26rem),
    linear-gradient(155deg, var(--cream) 0%, #ffe8a2 52%, var(--gold) 100%);
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  line-height: 1.7;
}

/* The skip link is hidden until a keyboard user focuses it with Tab. */
.skip-link {
  position: fixed;
  z-index: 10;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: white;
  background: var(--ink);
  border-radius: 10px;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header,
.site-footer {
  width: min(calc(100% - 32px), 1040px);
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  box-shadow: 0 8px 22px rgba(94, 61, 0, 0.12);
  font-size: 1.35rem;
}

.legal-nav {
  display: flex;
  gap: 8px;
}

.legal-nav a {
  padding: 8px 12px;
  color: var(--ink-soft);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

.legal-nav a:hover,
.legal-nav a:focus-visible,
.legal-nav a[aria-current="page"] {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.65);
  outline: none;
}

.legal-nav a:focus-visible,
.brand:focus-visible,
.site-footer a:focus-visible,
.document a:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

main {
  width: min(calc(100% - 32px), var(--content));
  margin: 34px auto 72px;
}

.eyebrow {
  margin: 0 0 10px;
  color: #6e5000;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.18;
  text-wrap: balance;
}

h1 {
  max-width: 680px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.7rem, 8vw, 5.4rem);
  font-weight: 700;
  letter-spacing: -0.055em;
}

.lede {
  max-width: 630px;
  margin: 22px 0 34px;
  color: var(--ink-soft);
  font-size: clamp(1rem, 2.5vw, 1.18rem);
}

.meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.meta-chip {
  padding: 7px 12px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
}

.document {
  padding: clamp(25px, 6vw, 56px);
  background: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.notice {
  margin: 0 0 36px;
  padding: 17px 19px;
  color: #584400;
  background: #fff2b7;
  border: 1px solid rgba(133, 96, 0, 0.2);
  border-radius: 15px;
  font-size: 0.88rem;
}

.placeholder {
  padding: 1px 5px;
  color: #5c3900;
  background: #ffe17a;
  border-radius: 4px;
  font-weight: 800;
  white-space: nowrap;
}

.document section + section {
  margin-top: 42px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}

.document h2 {
  margin: 0 0 15px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 4vw, 2rem);
  letter-spacing: -0.025em;
}

.document h3 {
  margin: 25px 0 8px;
  font-size: 1rem;
}

.document p,
.document li {
  color: #413a2d;
}

.document ul {
  margin: 14px 0 0;
  padding-left: 1.35rem;
}

.document li + li {
  margin-top: 9px;
}

.document a,
.site-footer a {
  color: #6a4700;
  font-weight: 750;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  padding: 0 0 36px;
  color: rgba(28, 19, 0, 0.62);
  font-size: 0.76rem;
}

/* Reduce layout width and keep navigation tappable on small phones. */
@media (max-width: 580px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .legal-nav {
    width: 100%;
  }

  .legal-nav a {
    flex: 1;
    text-align: center;
  }

  main {
    margin-top: 18px;
  }

  .site-footer {
    flex-direction: column;
  }
}

/* Respect users who ask their device to reduce non-essential animation. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
