/* Shared layout for the standalone pages: /support, /privacy-policy, /terms, /cookie-policy.
   Loaded after styles.css so it reuses the site header, footer and type scale. */

.legal-page { background: var(--paper); }

/* These pages ship without app.js, so the nav has no menu toggle: let the links wrap instead. */
.legal-page .nav-panel { display: flex; }
.legal-page .nav-links a[aria-current="page"] { color: #fff; }

.legal-hero { position: relative; padding-block: 74px 82px; color: #fff; background: var(--navy); }
.legal-eyebrow { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 22px; color: #8fb2ee; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.legal-eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.legal-hero h1 { max-width: 16ch; margin: 0; font: 800 clamp(40px, 5vw, 62px)/1 "Manrope", ui-sans-serif, sans-serif; letter-spacing: -.055em; text-wrap: balance; }
.legal-dates { margin: 26px 0 0; color: #8595ae; font-size: 13px; font-weight: 700; }
.legal-lede { max-width: 62ch; margin: 22px 0 0; color: #b9c6da; font-size: 18px; line-height: 1.6; }

.legal-body { padding-block: 76px 96px; }
/* Hero and body share one measure so the H1 lines up with the section text below it. */
.legal-hero .shell, .legal-body .shell { max-width: 780px; }
.legal-section + .legal-section { margin-top: 52px; padding-top: 52px; border-top: 1px solid var(--line); }
.legal-section h2 { display: flex; align-items: baseline; gap: 14px; margin: 0 0 18px; font-size: 26px; font-weight: 800; letter-spacing: -.04em; }
.legal-num { flex: 0 0 auto; color: var(--blue); font: 800 13px/1 "Manrope", ui-sans-serif, sans-serif; letter-spacing: 0; }
.legal-section p { margin: 0 0 16px; color: var(--muted); font-size: 16px; line-height: 1.65; }
.legal-section p:last-child { margin-bottom: 0; }
.legal-section h3 { margin: 26px 0 6px; font-size: 16px; font-weight: 800; letter-spacing: -.02em; }
.legal-section a { color: var(--blue); font-weight: 700; }
.legal-section a:hover { text-decoration: underline; }
.legal-list { display: grid; gap: 13px; margin: 0 0 16px; padding: 0; list-style: none; }
.legal-list li { display: flex; gap: 12px; color: var(--muted); font-size: 16px; line-height: 1.6; }
.legal-list li::before { content: ""; flex: 0 0 auto; width: 7px; height: 7px; margin-top: 10px; border-radius: 50%; background: #b6c6de; }

.legal-callout { margin: 0 0 22px; padding: 26px 28px; border-radius: var(--radius-md); background: #eef3fb; }
.legal-callout-label { display: block; margin-bottom: 14px; color: #47618c; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.legal-callout .legal-list li::before { background: var(--blue); }
.legal-callout p, .legal-callout .legal-list li { color: #3d5171; }

.legal-contact { display: grid; gap: 6px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; box-shadow: var(--shadow); }
.legal-contact a { font: 800 22px/1.2 "Manrope", ui-sans-serif, sans-serif; letter-spacing: -.035em; overflow-wrap: anywhere; }
.legal-contact p { margin: 0; font-size: 14px; }

.legal-table-wrap { overflow-x: auto; margin: 0 0 16px; border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; }
.legal-table { width: 100%; min-width: 560px; border-collapse: collapse; }
.legal-table th, .legal-table td { padding: 15px 18px; text-align: left; vertical-align: top; font-size: 14px; line-height: 1.55; }
.legal-table th { color: #47618c; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; background: #f3f6fb; }
.legal-table td { color: var(--muted); border-top: 1px solid var(--line); }
.legal-table td:first-child { color: var(--ink); font-weight: 700; white-space: nowrap; }

/* The invite the visitor arrived with, shown so it can be pasted into the app.
   The url wraps rather than truncates: the token in the middle is the part that
   matters, so an ellipsis there would hide exactly the wrong characters. */
.invite-box { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0 0 16px; }
.invite-box code { flex: 1 1 320px; min-width: 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; color: #475569; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; user-select: all; }
.invite-copy { padding: 13px 20px; border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; color: var(--blue); font: 800 14px/1 "Manrope", ui-sans-serif, sans-serif; cursor: pointer; }
.invite-copy:hover { background: #eef3fb; }

/* The generic `.legal-section a` rule (blue, bold) also matches the App Store
   badge on /care, which turns its white-on-ink label blue. Put the badge back to its
   own styling; it is a button, not a body link. */
.legal-section .store-btn { color: #fff; font-weight: inherit; }
.legal-section .store-btn:hover { color: #fff; text-decoration: none; }

.legal-back { display: inline-flex; align-items: center; gap: 8px; margin-top: 56px; color: var(--blue); font-size: 14px; font-weight: 800; }
.legal-back:hover { text-decoration: underline; }

@media (max-width: 760px) {
  .legal-page .nav { flex-wrap: wrap; min-height: 0; gap: 12px; padding-block: 14px; }
  /* The main stylesheet turns .nav-panel into a hidden drop-down at this width; these pages
     have no menu button, so put it back in the flow as a wrapping row. */
  .legal-page .nav-panel { position: static; display: flex; justify-content: flex-start; width: 100%; padding: 0; border: 0; background: transparent; box-shadow: none; }
  .legal-page .nav-links { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 12px 18px; }
  .legal-page .nav-links a { padding: 0; }
  .legal-hero { padding-block: 44px 52px; }
  .legal-lede { font-size: 16px; }
  .legal-body { padding-block: 52px 68px; }
  .legal-section + .legal-section { margin-top: 40px; padding-top: 40px; }
  .legal-section h2 { font-size: 22px; }
  .legal-callout, .legal-contact { padding: 22px; }
}
