/* ================================================================
 * Calm Pop · Privacy Policy — Warm Linen Editorial Design System
 * Forest green · terracotta · parchment · Cormorant + Nunito
 * ================================================================ */

:root {
  --forest-deep:    #1a3326;
  --forest-mid:     #2d5c42;
  --forest-light:   #4a8a64;
  --sage:           #7aab8a;
  --sage-muted:     #a8c8b4;

  --terracotta:     #c4664a;
  --terracotta-lt:  #e88f76;
  --amber:          #c9922d;

  --linen:          #faf6f0;
  --parchment:      #f2ebe0;
  --cream:          #e8e0d4;

  --text-ink:       #1e1812;
  --text-body:      #3d3228;
  --text-secondary: #6b5f54;
  --text-muted:     #9b8e84;

  --bg:             #faf6f0;
  --bg-card:        #ffffff;
  --bg-card-warm:   #fdfaf5;
  --bg-sage-tint:   #f1f6f2;

  --border:         rgba(26, 51, 38, 0.10);
  --border-warm:    rgba(196, 102, 74, 0.22);

  --shadow-xs:      0 1px 6px rgba(26, 51, 38, 0.05);
  --shadow-sm:      0 4px 16px rgba(26, 51, 38, 0.07);
  --shadow-md:      0 10px 36px rgba(26, 51, 38, 0.09);

  --green-bg:       #edf7f0;
  --green-text:     #1e6644;
  --blue-bg:        #edf3f9;
  --blue-text:      #1d5c8a;
  --orange-bg:      #fef6e4;
  --red-bg:         #fdf0ec;
  --red-text:       #a84832;

  --font-display:   'Cormorant Garamond', Georgia, serif;
  --font-body:      'Nunito', system-ui, sans-serif;

  --radius-xs:      4px;
  --radius-sm:      8px;
  --radius-md:      14px;
  --radius-lg:      22px;
  --radius-xl:      30px;

  --ease:           cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition:     all 0.28s var(--ease);
}

[data-theme="dark"] {
  --forest-deep:    #b8d8c4;
  --forest-mid:     #8ec4a4;
  --forest-light:   #6aaa88;
  --sage:           #7aab8a;

  --terracotta:     #e0825f;
  --terracotta-lt:  #f0a888;
  --amber:          #d4a840;

  --linen:          #0d1510;
  --parchment:      #131c16;
  --cream:          #1a2520;

  --text-ink:       #f0ebe0;
  --text-body:      #cdc6bc;
  --text-secondary: #9e9284;
  --text-muted:     #6e6458;

  --bg:             #0d1510;
  --bg-card:        #141c17;
  --bg-card-warm:   #192018;
  --bg-sage-tint:   #101a12;

  --border:         rgba(184, 216, 196, 0.09);
  --border-warm:    rgba(224, 130, 95, 0.22);

  --shadow-xs:      0 1px 6px rgba(0,0,0,.25);
  --shadow-sm:      0 4px 16px rgba(0,0,0,.30);
  --shadow-md:      0 10px 36px rgba(0,0,0,.35);

  --green-bg:       #0e2016;
  --green-text:     #7ac89a;
  --blue-bg:        #0c1c2e;
  --blue-text:      #82b8e0;
  --orange-bg:      #1e1408;
  --red-bg:         #1e0e0a;
  --red-text:       #e8907a;
}

/* ── Reset & Base ───────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-body);
  line-height: 1.72;
  overflow-x: hidden;
  min-height: 100vh;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
  position: relative;
}

/* Warm radial glow */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 55% 45% at 5% 0%, rgba(122,171,138,.14) 0%, transparent 68%),
    radial-gradient(ellipse 45% 55% at 95% 100%, rgba(196,102,74,.09) 0%, transparent 68%),
    var(--bg);
  pointer-events: none;
}

/* Linen grain texture */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9000;
  pointer-events: none;
  opacity: 0.032;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 220px 220px;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ── Blobs (ambient colour) ─────────────────────── */
.blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(110px);
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  animation: blobFade 2.4s forwards var(--ease);
}
.blob-1 {
  width: 420px; height: 420px;
  top: -120px; left: -120px;
  background: radial-gradient(circle, rgba(122,171,138,.28), transparent);
  animation-delay: .2s;
}
.blob-2 {
  width: 500px; height: 500px;
  bottom: -160px; right: -160px;
  background: radial-gradient(circle, rgba(196,102,74,.14), transparent);
  animation-delay: .5s;
}
.blob-3 {
  width: 320px; height: 320px;
  top: 44%; left: 44%;
  background: radial-gradient(circle, rgba(201,146,45,.07), transparent);
  animation-delay: .8s;
}
@keyframes blobFade { to { opacity: 1; } }

/* ── Typography ─────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--text-ink);
  line-height: 1.18;
  font-weight: 700;
}
p { margin-bottom: 18px; }
strong { color: var(--text-ink); font-weight: 700; }

a { color: var(--forest-mid); text-decoration: none; transition: color .2s; }
a:hover { color: var(--terracotta); }

code {
  font-family: 'Menlo', 'Monaco', monospace;
  background: rgba(26,51,38,.07);
  color: var(--forest-mid);
  padding: 2px 7px;
  border-radius: 4px;
  font-size: .875em;
}
[data-theme="dark"] code { background: rgba(142,196,164,.12); color: var(--sage); }

/* ── Buttons ─────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .82rem;
  padding: 10px 22px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.btn-primary {
  background: var(--forest-deep);
  color: #fff;
}
[data-theme="dark"] .btn-primary { background: var(--forest-mid); }
.btn-primary:hover {
  background: var(--forest-mid);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(26,51,38,.28);
  color: #fff;
}
.btn-outline {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text-secondary);
}
.btn-outline:hover {
  border-color: var(--forest-mid);
  color: var(--forest-deep);
  background: var(--bg-sage-tint);
}
.btn-icon {
  width: 40px; height: 40px;
  padding: 0;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text-secondary);
  text-transform: none;
}
.btn-icon:hover {
  border-color: var(--forest-mid);
  color: var(--forest-deep);
  background: var(--bg-sage-tint);
}

/* ── Badge & Pills ───────────────────────────────── */
.badge {
  display: inline-block;
  padding: 5px 16px;
  border-radius: 50px;
  border: 1.5px solid var(--border);
  font-family: var(--font-body);
  font-size: .68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--forest-mid);
  background: var(--bg-sage-tint);
  margin-bottom: 20px;
}
[data-theme="dark"] .badge { background: rgba(122,171,138,.1); color: var(--sage); }

.meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
  justify-content: center;
}
.pill {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 7px 18px;
  border-radius: 50px;
  font-size: .78rem;
  color: var(--text-body);
  font-weight: 500;
  transition: var(--transition);
  box-shadow: var(--shadow-xs);
}
.pill .label { color: var(--text-muted); margin-right: 4px; }

/* ── Header ─────────────────────────────────────── */
header {
  background: rgba(250,246,240,.88);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background .4s, border-color .4s;
}
[data-theme="dark"] header {
  background: rgba(13,21,16,.88);
}
.header-container {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 14px;
}
.logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  animation: gentleFloat 5s infinite ease-in-out;
  display: block;
  flex-shrink: 0;
  object-fit: cover;
}
@keyframes gentleFloat {
  0%,100% { transform: translateY(0) rotate(-4deg); }
  50%      { transform: translateY(-7px) rotate(4deg); }
}
.logo-text h1 {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--text-ink);
}
.logo-text span {
  font-family: var(--font-body);
  font-size: .65rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--text-muted);
  font-weight: 700;
  display: block;
  margin-top: 1px;
}
.header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* ── Hero ───────────────────────────────────────── */
.hero {
  padding: 80px 0 60px;
  text-align: center;
}
.hero-container { position: relative; }

.hero h2 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 700;
  font-style: italic;
  letter-spacing: -.025em;
  color: var(--text-ink);
  line-height: 1.05;
  margin-bottom: 14px;
  justify-content: center;
  display: block;
}

/* Decorative rule under hero title */
.hero h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--terracotta), var(--amber));
  border-radius: 2px;
  margin: 16px auto 0;
}

.subtitle {
  font-size: .8rem;
  color: var(--text-muted);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 0;
  font-weight: 600;
}

/* ── Search ─────────────────────────────────────── */
.search-container {
  max-width: 540px;
  margin: 38px auto 0;
}
.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}
.search-icon {
  position: absolute;
  left: 18px;
  color: var(--text-muted);
  pointer-events: none;
}
#policy-search {
  width: 100%;
  padding: 15px 50px 15px 50px;
  border-radius: var(--radius-xl);
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  color: var(--text-ink);
  font-family: var(--font-body);
  font-size: .875rem;
  outline: none;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
#policy-search::placeholder { color: var(--text-muted); }
#policy-search:focus {
  border-color: var(--forest-mid);
  box-shadow: 0 0 0 4px rgba(45,92,66,.10);
}
#search-clear {
  position: absolute;
  right: 18px;
  background: none;
  border: none;
  font-size: 1.2rem;
  color: var(--text-muted);
  cursor: pointer;
  outline: none;
  line-height: 1;
}
.search-results-info {
  margin-top: 10px;
  font-size: .78rem;
  color: var(--forest-mid);
  font-weight: 700;
  min-height: 18px;
  text-align: center;
  letter-spacing: .04em;
}

/* ── Main Layout ────────────────────────────────── */
.main-layout {
  display: grid;
  grid-template-columns: 252px 1fr;
  gap: 48px;
  padding-top: 8px;
  padding-bottom: 100px;
}

/* ── Sidebar ────────────────────────────────────── */
.sidebar {
  position: sticky;
  top: 90px;
  height: fit-content;
}
.toc-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  position: relative;
}
/* Accent top stripe */
.toc-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--forest-mid), var(--sage));
}
.toc-card h3 {
  font-family: var(--font-body);
  font-size: .65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  padding-bottom: 14px;
  margin: 16px 0 16px;
}
#toc-nav ul { list-style: none; }
#toc-nav li { margin-bottom: 2px; }
#toc-nav a {
  display: block;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: .825rem;
  font-weight: 500;
  transition: var(--transition);
}
#toc-nav a:hover {
  color: var(--forest-deep);
  background: var(--bg-sage-tint);
  padding-left: 16px;
}
#toc-nav a.active {
  color: var(--forest-mid);
  background: var(--bg-sage-tint);
  font-weight: 700;
  border-left: 2.5px solid var(--forest-mid);
  padding-left: 14px;
}
.toc-footer {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: .72rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Content Area ───────────────────────────────── */
.content-area {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.content-area > * {
  opacity: 0;
  transform: translateY(22px);
  animation: slideUp .6s forwards var(--ease);
}
.content-area > *:nth-child(1) { animation-delay: .1s; }
.content-area > *:nth-child(2) { animation-delay: .22s; }
@keyframes slideUp { to { opacity: 1; transform: translateY(0); } }

/* ── Summary Card ───────────────────────────────── */
.summary-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 34px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.summary-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--forest-mid), var(--sage) 50%, var(--terracotta));
}
/* Decorative large leaf shape */
.summary-card::after {
  content: '❧';
  position: absolute;
  bottom: -10px;
  right: 20px;
  font-size: 8rem;
  color: var(--forest-deep);
  opacity: .025;
  line-height: 1;
  pointer-events: none;
}
.summary-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
}
.summary-card-header h4 {
  font-size: 1.3rem;
  font-style: italic;
  font-weight: 600;
  color: var(--text-ink);
}
.sparkle { font-size: 1.1rem; }

.summary-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 768px) {
  .summary-grid { grid-template-columns: repeat(3,1fr); }
}
.summary-item {
  display: flex;
  gap: 14px;
  padding: 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-card-warm);
  transition: var(--transition);
}
.summary-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  border-color: rgba(122,171,138,.3);
}
.icon-wrap {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.color-green  { background: var(--green-bg);  color: var(--green-text);  }
.color-purple { background: var(--blue-bg);   color: var(--blue-text);   }
.color-orange { background: var(--orange-bg); color: var(--amber);       }
.summary-item h5 { font-size: .875rem; margin-bottom: 4px; }
.summary-item p  { font-size: .76rem; color: var(--text-muted); line-height: 1.5; margin: 0; }

/* ── Policy Body ────────────────────────────────── */
#policy-body {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 52px 56px;
  box-shadow: var(--shadow-md);
}

.policy-section {
  padding-bottom: 52px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 52px;
  position: relative;
}
.policy-section:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

/* Large watermark section number */
.policy-section[data-num]::after {
  content: attr(data-num);
  position: absolute;
  top: -12px;
  right: -16px;
  font-family: var(--font-display);
  font-size: 9rem;
  font-weight: 700;
  font-style: italic;
  color: var(--text-ink);
  opacity: .028;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.policy-section h2 {
  font-size: 1.6rem;
  font-weight: 700;
  font-style: italic;
  color: var(--text-ink);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Terracotta left-bar accent on section h2 */
.policy-section h2::before {
  content: '';
  display: block;
  width: 3px;
  height: 1.1em;
  background: var(--terracotta);
  border-radius: 2px;
  flex-shrink: 0;
}

.policy-section h3 {
  font-size: 1.15rem;
  font-weight: 600;
  font-style: italic;
  margin: 28px 0 12px;
  color: var(--text-ink);
}

.policy-section ul {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}
.policy-section li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 12px;
}
.policy-section li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--terracotta);
  font-weight: 700;
}

.info-block {
  background: var(--green-bg);
  border-left: 3px solid var(--green-text);
  padding: 16px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 24px 0;
  font-size: .9rem;
}

/* ── Permissions ────────────────────────────────── */
.permissions-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 24px 0;
}
.permission-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  background: var(--bg-card-warm);
  transition: var(--transition);
}
.permission-item:hover {
  border-color: rgba(122,171,138,.35);
  box-shadow: var(--shadow-sm);
}
.perm-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.perm-badge {
  font-size: .68rem;
  font-family: 'Menlo', monospace;
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.perm-badge.red  { background: var(--red-bg);  color: var(--red-text);  }
.perm-badge.blue { background: var(--blue-bg); color: var(--blue-text); }
.perm-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-style: italic;
  color: var(--text-ink);
  font-size: 1.15rem;
}
.perm-disclaimer {
  background: var(--green-bg);
  border: 1px solid rgba(30,102,68,.15);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-top: 12px;
  font-size: .84rem;
}

/* ── Policy Table ───────────────────────────────── */
.policy-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: .875rem;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}
.policy-table th,
.policy-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.policy-table th {
  font-family: var(--font-body);
  font-size: .65rem;
  text-transform: uppercase;
  letter-spacing: .10em;
  color: var(--text-muted);
  font-weight: 800;
  background: var(--bg-sage-tint);
}
.policy-table tr:last-child td { border-bottom: none; }
.policy-table tr:hover td { background: var(--bg-card-warm); }
.policy-table a {
  color: var(--forest-mid);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.policy-table a:hover { color: var(--terracotta); }

/* ── Warning Alert ──────────────────────────────── */
.warning-alert {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--orange-bg);
  border: 1px solid rgba(201,146,45,.22);
  color: var(--text-body);
  padding: 18px 22px;
  border-radius: var(--radius-md);
  margin-top: 20px;
  font-size: .875rem;
}
.warning-alert svg { flex-shrink: 0; color: var(--amber); margin-top: 2px; }
.warning-alert em { font-weight: 700; font-style: normal; }

/* ── Interactive Inspector ──────────────────────── */
.interactive-sandbox {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  background: var(--bg-card-warm);
  margin: 28px 0;
}
.interactive-sandbox h5 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.1rem;
  font-style: italic;
  margin-bottom: 6px;
}
.interactive-sandbox .desc {
  font-size: .8rem;
  color: var(--text-muted);
  margin-bottom: 22px;
}
.sandbox-ui {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}
.sandbox-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .875rem;
  gap: 12px;
  transition: var(--transition);
}
.sandbox-row:hover { border-color: rgba(122,171,138,.3); }
.sandbox-row .row-label { font-weight: 500; color: var(--text-secondary); }
.sandbox-row .row-value {
  font-weight: 800;
  font-family: 'Menlo', monospace;
  font-size: .76rem;
  flex-shrink: 0;
}
.sandbox-row .color-green  { color: var(--green-text);  }
.sandbox-row .color-orange { color: var(--amber);       }
.sandbox-row .color-blue   { color: var(--blue-text);   }
.sandbox-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
#simulate-feedback {
  font-size: .8rem;
  font-weight: 700;
  color: var(--green-text);
  opacity: 0;
  transition: var(--transition);
}

/* ── Contact Card ───────────────────────────────── */
.contact-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  background: var(--bg-card-warm);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-top: 24px;
}
@media (min-width: 768px) {
  .contact-card { grid-template-columns: 1fr 1fr; }
}
.contact-info { display: flex; flex-direction: column; gap: 22px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; }
.c-icon {
  font-size: 1.3rem;
  width: 46px; height: 46px;
  background: var(--bg-sage-tint);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-item h6 {
  font-family: var(--font-body);
  font-size: .65rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--text-muted);
  font-weight: 800;
  margin-bottom: 4px;
}
.contact-item p a { color: var(--forest-mid); font-weight: 700; }
.contact-item p a:hover { color: var(--terracotta); }

.contact-form-wrapper h6 {
  font-family: var(--font-body);
  font-size: .65rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--text-muted);
  font-weight: 800;
  margin-bottom: 14px;
}
#contact-form { display: flex; flex-direction: column; gap: 10px; }
#contact-form input,
#contact-form textarea {
  width: 100%;
  padding: 11px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  color: var(--text-ink);
  font-family: var(--font-body);
  font-size: .875rem;
  outline: none;
  transition: border-color .2s;
  resize: vertical;
}
#contact-form input::placeholder,
#contact-form textarea::placeholder { color: var(--text-muted); }
#contact-form input:focus,
#contact-form textarea:focus { border-color: var(--forest-mid); }

/* ── Footer ─────────────────────────────────────── */
footer {
  background: var(--parchment);
  border-top: 1px solid var(--border);
  padding: 44px 0;
  transition: background .4s, border-color .4s;
}
.footer-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  text-align: center;
}
@media (min-width: 768px) {
  .footer-container { flex-direction: row; justify-content: space-between; text-align: left; }
}
.footer-left p { font-size: .875rem; margin: 0; color: var(--text-secondary); }
.footer-left .footer-details { font-size: .72rem; color: var(--text-muted); margin-top: 4px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--text-secondary); font-size: .875rem; font-weight: 700; transition: color .2s; }
.footer-links a:hover { color: var(--forest-mid); }

/* ── Search mark ────────────────────────────────── */
mark {
  background: rgba(201,146,45,.22);
  color: inherit;
  border-radius: 2px;
  padding: 0 2px;
}

/* ── Responsive ─────────────────────────────────── */
@media (max-width: 960px) {
  .main-layout { grid-template-columns: 1fr; gap: 28px; }
  .sidebar { display: none; }
  .hero h2 { font-size: clamp(2.2rem,8vw,3.4rem); }
  #policy-body { padding: 28px 24px; }
  .summary-card { padding: 24px; }
}

/* ── Print ──────────────────────────────────────── */
@media print {
  body { background: #fff !important; color: #000 !important; }
  body::before, body::after { display: none !important; }
  .blob, header, footer, .sidebar, .search-container,
  .summary-card, .interactive-sandbox, #btn-print,
  #theme-toggle, .contact-form-wrapper { display: none !important; }
  .main-layout { display: block !important; padding-bottom: 0 !important; }
  #policy-body { border: none !important; box-shadow: none !important; background: transparent !important; padding: 0 !important; }
  .policy-section { page-break-inside: avoid; border-bottom: 1px solid #ddd !important; margin-bottom: 20px !important; padding-bottom: 20px !important; }
  .policy-section[data-num]::after { display: none !important; }
  h1, h2, h3 { color: #000 !important; page-break-after: avoid; }
  a { text-decoration: none !important; color: #000 !important; }
  .info-block { border-left: 3px solid #333 !important; background: #f9f9f9 !important; }
  .permission-item { border: 1px solid #ccc !important; background: transparent !important; page-break-inside: avoid; }
  .policy-table { border: 1px solid #ccc !important; }
  .policy-table th { background: #eee !important; color: #000 !important; }
}
