/* Legal/utility page shared styles */

.legal-body { background: var(--cream); }

.legal-nav-wrap {
  background: var(--cream);
  border-bottom: 1.5px solid var(--ink-16);
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(8px);
}
.legal-nav {
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.legal-nav .brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--ink);
  font-weight: 900; font-size: 20px;
}
.legal-nav .brand .mark {
  width: 38px; height: 38px;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
}
.legal-nav nav {
  display: flex; align-items: center; gap: 22px;
  font-weight: 700; font-size: 15px;
}
.legal-nav nav a:not(.btn) {
  color: var(--ink-66);
  text-decoration: none;
}
.legal-nav nav a:not(.btn):hover { color: var(--ink); }
.legal-nav nav a.is-current { color: var(--ink); border-bottom: 2px solid var(--ink); padding-bottom: 2px; }

.legal-hero {
  padding: 80px 0 32px;
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
  position: relative;
  overflow: hidden;
}
.legal-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(135deg, var(--paperDeep) 0 2px, transparent 2px 24px);
  opacity: 0.28;
  pointer-events: none;
}
.legal-hero .container-sm { position: relative; }
.legal-kicker {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 22px;
  white-space: nowrap;
}
.legal-hero h1 {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: clamp(42px, 5.5vw, 80px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
  color: var(--ink);
  text-wrap: balance;
}
.legal-hero .updated {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-66);
  margin: 0 0 24px;
}

.legal-content {
  padding: 64px 0 96px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.65;
  text-wrap: pretty;
}
.legal-content h2 {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 48px 0 16px;
  color: var(--ink);
}
.legal-content h2:first-of-type { margin-top: 24px; }
.legal-content h3 {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 19px;
  line-height: 1.2;
  margin: 28px 0 10px;
  color: var(--ink);
}
.legal-content p {
  margin: 0 0 18px;
  color: var(--ink-66);
}
.legal-content p strong, .legal-content li strong { color: var(--ink); font-weight: 800; }
.legal-content a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--paperDeep);
}
.legal-content a:hover { text-decoration-color: var(--recordRed); }
.legal-content code {
  background: var(--paper);
  border: 1px solid var(--ink-16);
  padding: 1px 6px;
  border-radius: 6px;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 14px;
  font-weight: 600;
}

.legal-list {
  list-style: none;
  padding: 0; margin: 0 0 18px;
  display: grid; gap: 10px;
}
.legal-list li {
  padding-left: 28px;
  position: relative;
  color: var(--ink-66);
}
.legal-list li::before {
  content: "✕";
  position: absolute;
  left: 0; top: 0;
  color: var(--recordRed);
  font-weight: 900;
}

.legal-summary {
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 18px;
  padding: 26px 28px;
  margin: 0 0 40px;
  position: relative;
  overflow: hidden;
  box-shadow: 6px 6px 0 0 var(--ink);
}
.legal-summary::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(135deg, var(--paperDeep) 0 2px, transparent 2px 22px);
  opacity: 0.3;
  pointer-events: none;
}
.legal-summary > * { position: relative; z-index: 1; }
.legal-summary h2 {
  margin: 0 0 16px;
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.legal-summary ul {
  list-style: none;
  padding: 0; margin: 0;
  display: grid; gap: 12px;
}
.legal-summary li {
  padding-left: 28px;
  position: relative;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--ink);
}
.legal-summary li::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--teal);
  border: 2px solid var(--ink);
}

.legal-footnote {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 2px solid var(--ink-16);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-42);
  font-style: italic;
}
.legal-footnote p { margin: 0; color: var(--ink-42); }

/* Support page extras */
.support-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 32px 0 48px;
}
.support-card {
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 18px;
  padding: 26px 28px;
  position: relative;
  overflow: hidden;
  box-shadow: 6px 6px 0 0 var(--ink);
  text-decoration: none;
  color: var(--ink);
  transition: transform .15s ease, box-shadow .15s ease;
}
.support-card:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 0 var(--ink); }
.support-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(135deg, var(--paperDeep) 0 2px, transparent 2px 22px);
  opacity: 0.3;
  pointer-events: none;
}
.support-card > * { position: relative; z-index: 1; }
.support-card h3 {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 22px;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.support-card p {
  margin: 0;
  color: var(--ink-66);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
}
.support-card .ico {
  display: inline-flex;
  width: 42px; height: 42px;
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: 50%;
  align-items: center; justify-content: center;
  margin-bottom: 16px;
}

.faq {
  display: grid; gap: 12px;
  margin: 24px 0 48px;
}
.faq-item {
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: 14px;
  padding: 18px 22px;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 800;
  font-size: 17px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 24px;
  font-weight: 900;
  color: var(--ink);
  transition: transform .15s ease;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p {
  margin: 14px 0 0;
  color: var(--ink-66);
  font-size: 16px;
  line-height: 1.55;
}

@media (max-width: 720px) {
  .support-grid { grid-template-columns: 1fr; }
  .legal-nav nav a:not(.btn) { display: none; }
}
