/* ==========================================================================
   legal.css — shared styling for AVArx legal / policy pages
   (terms, privacy, hipaa, ccpa, contact, shipping)
   Inherits design tokens + nav/footer/button styles from styles.css.
   ========================================================================== */

/* Legal pages are static documents — no ScrollSmoother wrapper, so let the
   document scroll normally and give the sticky nav something to sit on. */
.legal-body {
  background: var(--canvas);
}

/* Readable article column */
.legal-main {
  max-width: 820px;
  margin: 0 auto;
  padding: 56px var(--gutter) 96px;
}

/* ---- Page header ---- */
.legal-header {
  margin-bottom: 40px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--hairline);
}
.legal-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: var(--wt-strong);
  letter-spacing: 0.02em;
  color: var(--brand-rust);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.legal-header h1 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 16px;
}
.legal-header h1 .italic {
  font-family: var(--font-italic);
  font-weight: 400;
  font-style: italic;
  color: var(--brand-rust);
}
.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  font-size: 14px;
  color: var(--ink-mute);
}
.legal-meta strong { color: var(--ink); font-weight: var(--wt-medium); }

/* ---- Body content ---- */
.legal-content {
  font-family: var(--font-body);
  font-weight: var(--wt-body);
  font-size: 16.5px;
  line-height: 1.72;
  color: var(--ink);
}
.legal-content > section { margin-bottom: 38px; }
.legal-content h2 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 23px;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 14px;
  scroll-margin-top: 90px;
}
.legal-content h2 .num {
  color: var(--ink-faint);
  font-weight: var(--wt-medium);
  margin-right: 10px;
}
.legal-content h3 {
  font-family: var(--font-head);
  font-weight: var(--wt-strong);
  font-size: 17px;
  color: var(--ink);
  margin: 24px 0 8px;
}
.legal-content p { margin: 0 0 14px; }
.legal-content a {
  color: var(--brand-rust);
  text-decoration: underline;
  text-decoration-color: rgba(196,89,60,0.4);
  text-underline-offset: 2px;
}
.legal-content a:hover { text-decoration-color: var(--brand-rust); }
.legal-content ul,
.legal-content ol { margin: 0 0 14px; padding-left: 22px; }
.legal-content li { margin-bottom: 8px; }
.legal-content strong { font-weight: var(--wt-strong); color: var(--ink); }

/* ---- Callout (disclaimers / important notices) ---- */
.legal-callout {
  background: var(--canvas-soft);
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--brand-honey);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin: 0 0 28px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-mute);
}
.legal-callout strong { color: var(--ink); }

/* ---- Definition / contact block ---- */
.legal-card {
  background: var(--canvas-soft);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 24px 26px;
  margin: 0 0 24px;
}
.legal-card h3 { margin-top: 0; }
.legal-card p:last-child { margin-bottom: 0; }

/* ---- Tables ---- */
.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 4px 0 18px;
  font-size: 15px;
}
.legal-table th,
.legal-table td {
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--hairline);
  vertical-align: top;
}
.legal-table th {
  font-weight: var(--wt-strong);
  color: var(--ink);
  background: var(--canvas-soft);
}

/* ---- Back link ---- */
.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: var(--wt-medium);
  color: var(--ink-mute);
  text-decoration: none;
  margin-bottom: 28px;
  padding: 10px 0;
  min-height: 44px;
}
.legal-back:hover { color: var(--ink); }
.legal-back svg { width: 16px; height: 16px; }

@media (max-width: 600px) {
  .legal-main { padding: 36px var(--gutter) 72px; }
  .legal-content { font-size: 16px; }
}

/* ==========================================================================
   Product detail pages
   ========================================================================== */
.prod-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
  margin-bottom: 48px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--hairline);
}
.prod-hero__media {
  background: var(--canvas-soft);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-xl);
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.prod-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.prod-hero__info h1 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(30px, 4.5vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 14px 0 14px;
}
.prod-hero__info h1 .italic {
  font-family: var(--font-italic);
  font-weight: 400;
  font-style: italic;
  color: var(--brand-rust);
}
.prod-hero__tagline {
  font-size: 17px;
  line-height: 1.62;
  color: var(--ink-mute);
  margin: 0 0 26px;
}
.prod-hero__info .btn-avarx { margin-bottom: 14px; }
.prod-hero__fine { font-size: 13px; color: var(--ink-faint); margin: 0; }

@media (max-width: 720px) {
  .prod-hero { grid-template-columns: 1fr; gap: 24px; }
}
