/* ============================================================
   Linkqe — Landing page styles
   ============================================================ */

:root {
  color-scheme: light;
  --ink: #101828;
  --ink-soft: #475467;
  --ink-faint: #98a2b3;
  --bg: #ffffff;
  --bg-alt: #f8f9fc;
  --surface: #ffffff;
  --border: #eaecf0;
  --accent: #4f46e5;
  --accent-soft: #eef2ff;
  --accent-hover: #4338ca;
  --on-accent: #ffffff;
  --danger: #b42318;
  --success: #067647;
  --success-soft: #ecfdf3;
  --header-bg: rgba(255, 255, 255, .95);
  --bar: #e0e7ff;
  --card-hover-border: transparent;
  --cta-from: #4f46e5;
  --cta-to: #6d28d9;
  --check-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234f46e5' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
  --radius: 16px;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Space Grotesk', var(--font-body);
}

/* Dark: the qr_app's dark palette (its `buildDarkTheme()`), so the site and
   the app look alike. Shadows barely show on dark, so borders carry the cards.
   `data-theme` is set before the first paint by the inline script in each
   page's <head>: the visitor's choice (theme.js), else the system's. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #ececf6;
  --ink-soft: #9a9bb6;
  --ink-faint: #7c7d98;
  --bg: #11121f;
  --bg-alt: #151626;
  --surface: #191a2b;
  --border: #2a2b42;
  --accent: #8f97ff;
  --accent-soft: #26284a;
  --accent-hover: #a9afff;
  --on-accent: #11121f;
  --danger: #f97066;
  --success: #75e0a7;
  --success-soft: #0b2e1f;
  --header-bg: rgba(17, 18, 31, .95);
  --bar: #2e3160;
  --card-hover-border: #3a3c5e;
  --cta-from: #3b3d86;
  --cta-to: #5b21b6;
  --check-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238F97FF' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
}

/* The hero's QR stays dark on white, like a printed code (and like the app
   shows codes in dark mode). */
:root[data-theme="dark"] .qr-card {
  --ink: #101828;
  --accent: #4f46e5;
  --border: #eaecf0;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Typography ---------- */

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.4rem, 5.5vw, 3.8rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); font-weight: 600; }
h3 { font-size: 1.15rem; font-weight: 600; }

.accent { color: var(--accent); }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.lead {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 34em;
  margin: 22px 0 32px;
}

.section-sub {
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 38em;
  margin-top: 14px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 20px;
  border-radius: 10px;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease,
              transform .2s ease, box-shadow .2s ease;
}

.btn-lg { padding: 14px 28px; font-size: 1rem; }

.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 1px 2px rgba(16, 24, 40, .08);
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(79, 70, 229, .25);
}

.btn-outline {
  border: 1px solid var(--border);
  color: var(--ink);
}
.btn-outline:hover { border-color: var(--ink-faint); background: var(--bg-alt); }

.btn-ghost { color: var(--ink-soft); }
.btn-ghost:hover { color: var(--ink); }

/* On the CTA band, so its text takes the band's colour. */
.btn-light {
  background: #fff;
  color: var(--cta-from);
}
.btn-light:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(0, 0, 0, .18); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--ink);
  text-decoration: none;
}

.logo-mark { width: 26px; height: 26px; color: var(--accent); }

.nav-links {
  display: flex;
  gap: 28px;
}
.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color .2s ease;
}
.nav-links a:hover { color: var(--ink); }

.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-actions .btn { white-space: nowrap; }

/* Light/dark switch (theme.js). Shows the current theme's icon. */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--ink-soft);
  cursor: pointer;
  transition: color .2s ease, background-color .2s ease;
}
.theme-toggle:hover { color: var(--ink); background: var(--bg-alt); }
.theme-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .icon-moon,
:root[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

/* ---------- Hero ---------- */

.hero {
  padding: 88px 0 96px;
  overflow: hidden;
  background:
    radial-gradient(60% 80% at 85% 20%, var(--accent-soft) 0%, transparent 70%),
    var(--bg);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-copy { animation: fade-up .7s ease both; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-note {
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--ink-faint);
}
.hero-note a { color: var(--accent); font-weight: 500; text-decoration: none; }
.hero-note a:hover { text-decoration: underline; }

/* Hero visual */

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  animation: fade-up .7s ease .15s both;
}

.qr-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 24px 60px rgba(16, 24, 40, .1);
  overflow: hidden;
}

.qr-svg { width: 240px; height: 240px; }

.scan-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: .7;
  animation: scan 3.2s ease-in-out infinite;
}

@keyframes scan {
  0%, 100% { transform: translateY(12px); }
  50%      { transform: translateY(285px); }
}

.float-chip {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-soft);
  box-shadow: 0 8px 24px rgba(16, 24, 40, .1);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.chip-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.chip-device { top: 8%; left: -4%; animation: float 5s ease-in-out infinite; }
.chip-geo    { bottom: 14%; right: -6%; animation: float 6s ease-in-out .8s infinite; }
.chip-stat   { bottom: -4%; left: 6%; animation: float 5.5s ease-in-out 1.6s infinite; }
.chip-stat strong { color: var(--ink); font-weight: 700; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Sections ---------- */

.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }

.section-head { max-width: 640px; margin-bottom: 56px; }

/* ---------- Features ---------- */

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--card-hover-border);
  box-shadow: 0 16px 40px rgba(16, 24, 40, .08);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.feature-icon svg { width: 22px; height: 22px; }

.feature-card h3 { margin-bottom: 8px; }
.feature-card p { color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- Steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  list-style: none;
  counter-reset: step;
}

.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 18px;
}

.step h3 { margin-bottom: 8px; }
.step p { color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- Analytics ---------- */

.analytics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.check-list {
  list-style: none;
  margin-top: 28px;
  display: grid;
  gap: 14px;
}

.check-list li {
  position: relative;
  padding-left: 32px;
  color: var(--ink-soft);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-soft);
  background-image: var(--check-icon);
  background-size: 12px;
  background-position: center;
  background-repeat: no-repeat;
}

.dash-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 24px 60px rgba(16, 24, 40, .08);
}

.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.dash-title { font-weight: 600; font-size: 0.95rem; }

.dash-badge {
  background: var(--success-soft);
  color: var(--success);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
}

.bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  height: 140px;
  margin-bottom: 24px;
}

.bar {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  height: 100%;
  gap: 8px;
}

.bar::before {
  content: "";
  width: 100%;
  height: var(--h);
  background: var(--bar);
  border-radius: 6px;
  transition: height .8s cubic-bezier(.4, 0, .2, 1);
}

.bar-accent::before { background: var(--accent); }

.bar span {
  font-size: 0.7rem;
  color: var(--ink-faint);
  font-weight: 500;
}

/* Bars grow in when revealed */
.reveal:not(.is-visible) .bar::before { height: 0; }

.dash-rows { display: grid; gap: 10px; }

.dash-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--ink-soft);
  padding: 8px 0;
  border-top: 1px solid var(--border);
}

.dash-val { font-weight: 600; color: var(--ink); }

/* ---------- CTA ---------- */

.cta-section {
  background: linear-gradient(135deg, var(--cta-from) 0%, var(--cta-to) 100%);
  color: #fff;
}

.cta-inner {
  text-align: center;
  max-width: 620px;
}

.cta-inner p {
  margin: 16px 0 32px;
  opacity: .85;
  font-size: 1.1rem;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.logo-footer { font-size: 1.05rem; }

.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.9rem;
}
.footer-links a:hover { color: var(--ink); }

.footer-copy { font-size: 0.85rem; color: var(--ink-faint); }

/* "Cookie settings" — a button (injected by analytics.js) styled like the footer links. */
.footer-link-button {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: 0.9rem;
  color: var(--ink-soft);
  cursor: pointer;
}
.footer-link-button:hover { color: var(--ink); }

/* ---------- Cookie consent banner (injected by analytics.js) ---------- */

.consent {
  position: fixed;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 60;
  max-width: 560px;
  margin-left: auto;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 20px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(16, 24, 40, .14);
}
.consent[hidden] { display: none; }

.consent-text {
  flex: 1 1 260px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.consent-text a { color: var(--accent); }

.consent-actions { display: flex; gap: 8px; }
.consent-actions .btn {
  background: var(--surface);
  font-family: inherit;
  cursor: pointer;
}
.consent-actions .btn:hover { background: var(--bg-alt); }


/* Wider screens: logo with the copyright under it on the left, links on the right. */
@media (min-width: 601px) {
  .footer-inner {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 24px;
    row-gap: 8px;
  }
  .logo-footer { grid-column: 1; grid-row: 1; }
  .footer-copy { grid-column: 1; grid-row: 2; }
  .footer-links { grid-column: 2; grid-row: 1 / span 2; justify-content: flex-end; align-self: center; }
}

/* ---------- Scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger cards inside grids */
.features-grid .reveal:nth-child(2), .steps .reveal:nth-child(2) { transition-delay: .1s; }
.features-grid .reveal:nth-child(3), .steps .reveal:nth-child(3) { transition-delay: .2s; }
.features-grid .reveal:nth-child(4) { transition-delay: .05s; }
.features-grid .reveal:nth-child(5) { transition-delay: .15s; }
.features-grid .reveal:nth-child(6) { transition-delay: .25s; }

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { order: 1; }
  .hero-visual { order: 2; margin-top: 24px; }
  .hero-actions { justify-content: center; }
  .lead { margin-left: auto; margin-right: auto; }
  .analytics-grid { grid-template-columns: 1fr; gap: 40px; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
}

/* The mark alone, leaving the room to the theme switch and "Get started free". */
@media (max-width: 374px) {
  .nav .logo-name { display: none; }
}

@media (max-width: 600px) {
  .features-grid, .steps { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .hero { padding: 56px 0 72px; }
  .float-chip { display: none; }
  .nav-actions .btn-ghost { display: none; }
}

/* ---------- Pricing ---------- */

.nav-links a.is-active { color: var(--ink); }

.pricing-hero {
  padding: 80px 0 24px;
  text-align: center;
  background:
    radial-gradient(60% 90% at 50% 0%, var(--accent-soft) 0%, transparent 70%),
    var(--bg);
}
.pricing-hero .section-sub { margin: 18px auto 0; }

.pricing-section { padding-top: 48px; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 880px;
  margin: 0 auto;
  align-items: stretch;
}

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px 32px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.plan-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(16, 24, 40, .08);
}

.plan-card--featured {
  border: 2px solid var(--accent);
  box-shadow: 0 20px 48px rgba(79, 70, 229, .14);
}
.plan-card--featured:hover { box-shadow: 0 24px 56px rgba(79, 70, 229, .2); }

.plan-badge {
  position: absolute;
  top: -13px;
  left: 32px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
}

.plan-name { font-size: 1.35rem; }
.plan-tagline { color: var(--ink-soft); font-size: 0.95rem; margin-top: 6px; }

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 24px 0 4px;
}
.plan-amount {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}
.plan-period { color: var(--ink-faint); font-weight: 500; }

.plan-promo { align-self: flex-start; margin-top: 10px; }
.plan-promo-spacer { height: 36.5px; }

.plan-card .check-list { margin: 24px 0 32px; }

.plan-cta { margin-top: auto; text-align: center; }

.pricing-note {
  text-align: center;
  margin-top: 28px;
  font-size: 0.9rem;
  color: var(--ink-faint);
}

.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }

.faq {
  max-width: 720px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 22px;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  color: var(--accent);
  font-size: 1.3rem;
  line-height: 1;
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-soft); margin-top: 10px; }

.pricing-grid .reveal:nth-child(2) { transition-delay: .1s; }

@media (max-width: 900px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 480px; }
  .plan-promo-spacer { display: none; }
}

@media (max-width: 600px) {
  .pricing-hero { padding: 56px 0 8px; }
  .br-wide { display: none; }
  .plan-card { padding: 32px 22px 24px; }
}

/* ---------- Legal pages ---------- */

.legal-updated {
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--ink-faint);
}

.legal-section { padding-top: 48px; }

.legal {
  max-width: 760px;
  margin: 0 auto;
  color: var(--ink-soft);
}
.legal h2 {
  font-size: 1.45rem;
  color: var(--ink);
  margin: 48px 0 14px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  scroll-margin-top: 88px;
}
.legal h3 {
  color: var(--ink);
  margin: 24px 0 10px;
}
.legal p, .legal ul, .legal ol, .legal address { margin-bottom: 14px; }
.legal ul, .legal ol { padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal li::marker { color: var(--accent); }
.legal strong { color: var(--ink); font-weight: 600; }
.legal a { color: var(--accent); text-decoration: none; font-weight: 500; overflow-wrap: anywhere; }
.legal a:hover { text-decoration: underline; }
.legal code {
  font-size: 0.88em;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1px 6px;
}

.legal-summary {
  background: var(--accent-soft);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin-bottom: 24px;
}
.legal-summary h2 { margin: 0 0 16px; padding: 0; border: 0; font-size: 1.15rem; }
.legal-summary .check-list { padding: 0; margin: 0; gap: 10px; }
.legal-summary .check-list li { margin: 0; }
.legal-summary .check-list li::before { background-color: var(--bg); }

.legal-toc {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 32px;
}
.legal-toc-title {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px !important;
}
.legal-toc ol { columns: 2; column-gap: 32px; margin: 0; font-size: 0.95rem; }
.legal-toc li { break-inside: avoid; }
.legal-toc a { color: var(--ink-soft); font-weight: 400; }
.legal-toc a:hover { color: var(--accent); text-decoration: none; }

.legal-address {
  font-style: normal;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 22px;
  line-height: 1.8;
}

.report-form {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px 32px;
  display: grid;
  gap: 8px;
}
.legal .report-form h2 { margin: 0 0 4px; padding: 0; border: 0; }
.report-form label {
  font-weight: 600;
  color: var(--ink);
  margin-top: 12px;
}
.report-form input[type="text"],
.report-form select,
.report-form textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 14px;
}
.report-form textarea { resize: vertical; }
.report-form input:focus,
.report-form select:focus,
.report-form textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}
.legal .report-hint { font-size: 0.85rem; color: var(--ink-faint); margin: 0; }
.report-required, .report-optional {
  font-size: 0.75rem;
  font-weight: 500;
  margin-left: 6px;
  color: var(--ink-faint);
}
.report-required { color: var(--accent); }
.report-form .report-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 400;
  color: var(--ink-soft);
}
.report-check input { margin-top: 5px; accent-color: var(--accent); }
.legal .report-error { color: var(--danger); font-weight: 500; margin: 4px 0 0; }
.report-form .btn { justify-self: start; margin-top: 16px; }

.contact { max-width: 880px; }
.contact-main { text-align: center; margin-bottom: 56px; }
.contact-main h2 { margin-bottom: 8px; }
.contact-main p { color: var(--ink-soft); }
.contact-email {
  display: inline-block;
  margin: 4px 0 8px;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 4vw, 1.9rem);
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.contact-email:hover { text-decoration: underline; }
.contact-heading { margin-bottom: 24px; text-align: center; }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.contact-grid .feature-card { display: flex; flex-direction: column; }
.contact-grid .feature-card p { margin-bottom: 18px; }
.contact-grid .feature-card p a,
.contact-link { color: var(--accent); font-weight: 500; text-decoration: none; }
.contact-grid .feature-card p a:hover,
.contact-link:hover { text-decoration: underline; }
.contact-link { margin-top: auto; }

@media (max-width: 600px) {
  .legal-summary, .legal-toc { padding: 22px; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-main { margin-bottom: 40px; }
  .report-form { padding: 22px; }
  .report-form .btn { justify-self: stretch; text-align: center; }
  .legal-toc ol { columns: 1; }
  .legal h2 { font-size: 1.25rem; margin-top: 36px; padding-top: 24px; }
  .legal-summary h2 { margin-top: 0; padding-top: 0; }
}
