/* Terms / Privacy pages — reuses the site's theme tokens from styles.css. */
body.legal { background: var(--bg); color: var(--text); font-family: var(--font); margin: 0; }
.legal-top { display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: var(--topbar-h); padding: 0 24px; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.legal-top a { color: var(--muted); text-decoration: none; font-size: 14px; }
.legal-top a:hover { color: var(--text); }
.legal-main { max-width: 760px; margin: 0 auto; padding: 48px 16px 80px; line-height: 1.65; }
.legal-main h1 { font-size: clamp(28px, 5vw, 38px); margin: 0 0 6px; letter-spacing: -.02em; }
.legal-main .updated { color: var(--dim); font-size: 14px; margin: 0 0 32px; }
.legal-main h2 { font-size: 19px; margin: 40px 0 10px; padding-top: 8px; border-top: 1px solid var(--line); }
.legal-main h3 { font-size: 15px; margin: 22px 0 6px; color: var(--blue-2); }
.legal-main p, .legal-main li { color: #c9d6ee; font-size: 15.5px; }
.legal-main ul { padding-left: 22px; }
.legal-main li { margin: 4px 0; }
.legal-main a { color: var(--blue-2); }
.legal-main strong { color: var(--text); }
.legal-main .summary { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 20px; margin: 0 0 8px; }
.legal-main .summary p { margin: 6px 0; }
.legal-main .caps { text-transform: uppercase; font-size: 13.5px; letter-spacing: .01em; }
.legal-main table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 14.5px; }
.legal-main th, .legal-main td { text-align: left; vertical-align: top; padding: 9px 10px; border-bottom: 1px solid var(--line); color: #c9d6ee; }
.legal-main th { color: var(--text); font-weight: 600; background: var(--panel); }
.legal-foot { max-width: 760px; margin: 0 auto; padding: 0 16px 40px; color: var(--dim); font-size: 13px; }
.legal-foot a { color: var(--muted); margin-right: 16px; }
@media (max-width: 600px) {
  .legal-top { padding: 0 16px; }
  .legal-main table, .legal-main thead, .legal-main tbody, .legal-main tr, .legal-main th, .legal-main td { display: block; }
  .legal-main thead { display: none; }
  .legal-main td { border: 0; padding: 4px 0; }
  .legal-main tr { border-bottom: 1px solid var(--line); padding: 8px 0; }
}

/* Header links on Pricing, Coverage and the invite page (tee.html loads only this stylesheet). */
.legal-nav { display: flex; gap: 16px; flex-wrap: wrap; }

/* These pages load styles.css, which hides the page scrollbar for the app and never turns it back on here.
   Give them a normal, visible page scrollbar. The header is not sticky here, so no scroll padding either. */
html { scroll-padding-top: 0; }
@supports not selector(::-webkit-scrollbar) { html { scrollbar-width: auto; scrollbar-color: #4a6396 #0c1322; } }
@supports selector(::-webkit-scrollbar) { html { scrollbar-width: auto; scrollbar-color: auto; } }
html::-webkit-scrollbar, body::-webkit-scrollbar { display: block; width: 14px; height: 14px; }
html::-webkit-scrollbar-track, body::-webkit-scrollbar-track { background: #0c1322; }
html::-webkit-scrollbar-thumb, body::-webkit-scrollbar-thumb { background: #4a6396; border-radius: 8px; border: 3px solid #0c1322; min-height: 48px; }
html::-webkit-scrollbar-thumb:hover, body::-webkit-scrollbar-thumb:hover { background: #6f8fc9; }

/* Photo credits: wider page, long titles wrap, the License column stays whole. */
.credits-main { max-width: 1000px; }
.credits-main td { overflow-wrap: anywhere; }
.credits-main th:last-child, .credits-main td:last-child { white-space: nowrap; }

@media (max-width: 600px) {
  .legal-top { height: auto; min-height: var(--topbar-h); padding: 10px 16px; flex-wrap: wrap; }
  .legal-top .brand-logo { height: 32px; }
  .legal-nav { gap: 12px; }
}
/* Touch screens: taller hit area on the small header and footer links (inline padding, so nothing moves). */
@media (pointer: coarse) {
  .legal-top a:not(.brand), .legal-foot a { padding: 10px 0; }
}

/* Remove my information form (optout.html) */
.opt-form { display: grid; gap: 14px; max-width: 560px; margin: 22px 0 30px; }
.opt-form label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
.opt-form input:not([type=checkbox]), .opt-form textarea { font: inherit; font-weight: 400; padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--line-2, #2a3550); background: var(--bg-2, #0d1424); color: var(--text, #e6efff); }
.opt-form small { font-weight: 400; color: var(--muted, #9fb0cc); font-size: 13px; }
.opt-form .req { color: #ff8a8a; } .opt-form .opt { font-weight: 400; color: var(--muted, #9fb0cc); font-size: 13px; }
.opt-form .opt-check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.opt-form .opt-check input { margin-top: 4px; }
.opt-form button { justify-self: start; }
.opt-msg { min-height: 1.4em; margin: 0; } .opt-msg.ok { color: #86efac; } .opt-msg.err { color: #fca5a5; }
