/* Legal pages (privacy / terms / refund / support) — Orbit tone.
   Reuses site tokens from practice-nav-hero.css (load that first). */

.legal-main {
  max-width: 760px;
  margin: 0 auto;
  /* shared top spacing under the nav (matches blog/contact) */
  padding: clamp(150px, 18vh, 200px) 22px 120px;
}

.legal-eyebrow {
  font-family: var(--font-mono, ui-monospace, Menlo, monospace);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent, #2d6fe8);
  margin: 0 0 14px;
}

/* Unified with the site's serif title family (same as blog/page titles),
   one step smaller for document pages (7/8). */
.legal-main h1 {
  margin: 0 0 16px;
  font-family: var(--font-serif, "Fraunces", Georgia, serif);
  font-variation-settings: "wght" 700;
  font-size: clamp(34px, 4.6vw, 44px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.08;
  color: var(--ink, #1c1b1f);
}

.legal-meta {
  font-family: var(--font-mono, ui-monospace, Menlo, monospace);
  font-size: 13px;
  color: var(--muted, rgba(0, 0, 0, 0.56));
  margin: 0 0 40px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line, rgba(0, 0, 0, 0.08));
}

.legal-main h2 {
  /* sans-serif section headings to match the sans title */
  font-family: var(--font-sans, Helvetica, Arial, sans-serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink, #1c1b1f);
  margin: 40px 0 12px;
}

.legal-main p,
.legal-main li {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink, #1c1b1f);
  margin: 0 0 14px;
}

.legal-main ul {
  margin: 0 0 18px 1.2em;
  padding: 0;
}
.legal-main li { margin-bottom: 8px; }

.legal-main a {
  color: var(--accent, #2d6fe8);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-main strong { font-weight: 600; }

.legal-main table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0 24px;
  font-size: 15px;
}
.legal-main th,
.legal-main td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line, rgba(0, 0, 0, 0.08));
  vertical-align: top;
}
.legal-main th {
  font-weight: 600;
  color: var(--ink, #1c1b1f);
  background: rgba(0, 0, 0, 0.02);
}
.legal-main td { color: var(--muted, rgba(0, 0, 0, 0.6)); }

/* ============================================================
   Help / Support Center  (contact.html, body.help-page)
   A Help-Center landing: centered intro + search, a grid of category
   cards, then per-category FAQ accordions, and an "Email support" CTA.
   No form — replies go to support@orbitformac.com. Built on site tokens.
   ============================================================ */
.help-page .legal-main {
  max-width: 980px;
  /* shared top spacing under the nav (matches blog/legal) */
  padding-top: clamp(150px, 18vh, 200px);
  text-align: center;
}

/* Eyebrow / h1 / lede styling comes from the shared page-header rules in
   practice-nav-hero.css (.help-hero-eyebrow / .help-page h1 / .help-page
   .help-lede are aliased there). Only the page-specific bottom spacing under
   the lede (to clear the search box) stays here. */
.help-page .help-lede {
  margin-bottom: 36px;
}

/* The generic `.legal-main a` rule (underline + accent color) is more specific
   than a bare `.help-card`/`.help-email-btn`, so scope these overrides under
   `.help-page` to win and strip the inherited underline + blue link color. */
.help-page .help-card,
.help-page .help-card:hover {
  text-decoration: none;
  color: var(--ink, #1c1b1f);
}
.help-page .help-email-btn,
.help-page .help-email-btn:hover {
  text-decoration: none;
  color: #fff;
}

/* --- search ------------------------------------------------------------- */
.help-search {
  position: relative;
  max-width: 560px;
  margin: 0 auto 64px;
}
.help-search input {
  width: 100%;
  font: 400 16px var(--font-sans, Helvetica, Arial, sans-serif);
  color: var(--ink, #1c1b1f);
  padding: 15px 16px 15px 48px;
  background: var(--surface, #fff);
  border: 1px solid var(--line, rgba(0, 0, 0, 0.08));
  border-radius: var(--radius-pill, 999px);
  box-shadow: var(--shadow-card, 0 18px 50px rgba(0, 0, 0, 0.08));
  transition: border-color 0.15s, box-shadow 0.15s;
}
.help-search input::placeholder { color: rgba(0, 0, 0, 0.4); }
.help-search input:focus {
  outline: none;
  border-color: var(--accent, #2d6fe8);
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb, 45, 111, 232), 0.12);
}
.help-search::before {
  content: "";
  position: absolute;
  left: 19px;
  top: 50%;
  width: 17px;
  height: 17px;
  transform: translateY(-50%);
  pointer-events: none;
  background: no-repeat center/contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E");
}

/* --- category cards ----------------------------------------------------- */
.help-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  text-align: left;
  margin: 0 0 12px;
}
.help-card {
  display: block;
  padding: 26px 26px 24px;
  background: var(--surface, #fff);
  border: 1px solid var(--line, rgba(0, 0, 0, 0.08));
  border-radius: var(--radius, 18px);
  cursor: pointer;
  transform: translateZ(0);
  backface-visibility: hidden;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.help-card:hover {
  transform: translateY(-2px) translateZ(0);
  border-color: rgba(var(--accent-rgb, 45, 111, 232), 0.4);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.07);
}
.help-card-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  margin-bottom: 16px;
  background: rgba(var(--accent-rgb, 45, 111, 232), 0.1);
  color: var(--accent, #2d6fe8);
}
.help-card-icon svg { width: 22px; height: 22px; }
.help-card h3 {
  font-family: var(--font-sans, Helvetica, Arial, sans-serif);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
  color: var(--ink, #1c1b1f);
}
.help-card p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--muted, rgba(0, 0, 0, 0.55));
}

/* --- per-category FAQ sections ------------------------------------------ */
.help-faqs {
  margin: 56px 0 0;
  text-align: left;
}
.help-faq-group { margin: 0 0 44px; scroll-margin-top: 120px; }
.help-faq-group h2 {
  font-family: var(--font-serif, "Fraunces", Georgia, serif);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  color: var(--ink, #1c1b1f);
}

.help-faqs .faq-list {
  max-width: none;
  gap: 10px;
}
.help-faqs .faq-list details {
  border: 1px solid var(--line, rgba(0, 0, 0, 0.08));
  border-radius: var(--radius-sm, 10px);
  background: var(--surface, #fff);
  padding: 2px 20px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.help-faqs .faq-list details:hover { border-color: rgba(var(--accent-rgb, 45, 111, 232), 0.32); }
.help-faqs .faq-list details[open] { border-color: rgba(var(--accent-rgb, 45, 111, 232), 0.42); }
.help-faqs .faq-list summary {
  min-height: 54px;
  margin-bottom: 0;
  font-family: var(--font-sans, Helvetica, Arial, sans-serif);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink, #1c1b1f);
}
.help-faqs .faq-list summary::before {
  color: rgba(var(--accent-rgb, 45, 111, 232), 0.85);
  font-size: 20px;
  margin-left: auto;
  order: 2;
}
.help-faqs .faq-answer p {
  padding: 0 30px 14px 2px;
  color: var(--muted, rgba(0, 0, 0, 0.58));
  font-size: 15px;
  line-height: 1.62;
}
.help-faqs .faq-list details[hidden] { display: none; }

/* search empty-state + hiding whole groups when nothing matches */
.help-faq-group[data-empty="true"] { display: none; }
.help-noresults {
  display: none;
  text-align: center;
  padding: 8px 0 24px;
  color: var(--muted, rgba(0, 0, 0, 0.56));
  font-size: 15px;
}
.help-faqs[data-empty="true"] .help-noresults { display: block; }

/* --- need more help CTA ------------------------------------------------- */
.help-cta {
  margin: 40px 0 0;
  padding: 48px 24px;
  text-align: center;
  background: rgba(0, 0, 0, 0.025);
  border: 1px solid var(--line, rgba(0, 0, 0, 0.06));
  border-radius: var(--radius, 18px);
}
.help-cta h2 {
  font-family: var(--font-serif, "Fraunces", Georgia, serif);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  color: var(--ink, #1c1b1f);
}
.help-cta p {
  margin: 0 0 24px;
  font-size: 15.5px;
  color: var(--muted, rgba(0, 0, 0, 0.56));
}
.help-email-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font: 600 15px var(--font-sans, Helvetica, Arial, sans-serif);
  color: #fff;
  background: var(--cta, #111914);
  border-radius: var(--radius-pill, 999px);
  padding: 13px 26px;
  text-decoration: none;
  /* promote to its own GPU layer so the hover lift doesn't sub-pixel-jitter
     the variable-weight text + stroked icon inside */
  transform: translateZ(0);
  will-change: transform;
  backface-visibility: hidden;
  transition: transform 0.16s ease, box-shadow 0.18s ease;
  box-shadow: 0 10px 30px rgba(var(--accent-rgb, 45, 111, 232), 0.16);
}
.help-email-btn:hover {
  transform: translateY(-1px) translateZ(0);
  box-shadow: 0 14px 34px rgba(var(--accent-rgb, 45, 111, 232), 0.24);
}
.help-email-btn svg { width: 17px; height: 17px; }

@media (max-width: 720px) {
  .help-cards { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .legal-main { padding: 120px 20px 90px; }
  .legal-main h1 { font-size: 34px; }
}

/* Mobile launch fix (7/8): privacy/refund tables overflow a 320px viewport —
   let the table itself scroll horizontally instead of the page. */
@media (max-width: 400px) {
  .legal-main table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    font-size: 13px;
  }
  .legal-main th,
  .legal-main td {
    padding: 10px;
  }
}
