:root {
  color-scheme: light;
  --ink: #171c22;
  --muted: #65707b;
  --line: #dde2e7;
  --red: #d82b1f;
  --red-dark: #a92018;
  --paper: #fff;
  --canvas: #f3f5f7;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--canvas); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--red-dark); font-weight: 750; text-underline-offset: 3px; }
a:hover { color: var(--red); }

.legal-site-header { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 13px clamp(20px, 5vw, 68px); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); }
.legal-site-header img { display: block; width: min(255px, 58vw); max-height: 60px; object-fit: contain; object-position: left center; }
.legal-portal-link { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 16px; border: 1px solid #cfd5da; border-radius: 10px; color: #28313a; background: #fff; font-size: 14px; text-decoration: none; white-space: nowrap; }
.legal-portal-link:hover { border-color: #aeb6bd; color: #151b21; background: #f8f9fa; }

.legal-shell { width: min(900px, calc(100% - 36px)); margin: 34px auto 48px; }
.legal-document { overflow: hidden; border: 1px solid var(--line); border-top: 5px solid var(--red); border-radius: 18px; background: var(--paper); box-shadow: 0 18px 52px rgba(18,25,32,.08); }
.legal-document-header { padding: clamp(28px, 6vw, 48px); border-bottom: 1px solid var(--line); background: linear-gradient(145deg,#fff,#f7f8f9); }
.legal-document-header > span { color: var(--red-dark); font-size: 13px; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.legal-document-header h1 { margin: 9px 0 13px; font-size: clamp(34px, 7vw, 54px); line-height: 1.04; letter-spacing: -.045em; }
.legal-document-header p { margin: 4px 0 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.legal-document-header p strong { color: var(--ink); }

.legal-document section { padding: 27px clamp(24px, 6vw, 48px); border-bottom: 1px solid #eaedf0; }
.legal-document section:last-child { border-bottom: 0; }
.legal-document h2 { margin: 0 0 12px; font-size: 21px; letter-spacing: -.02em; }
.legal-document p, .legal-document li { font-size: 16px; line-height: 1.72; }
.legal-document p { margin: 0 0 13px; }
.legal-document p:last-child { margin-bottom: 0; }
.legal-document ul { margin: 10px 0 0; padding-left: 23px; }
.legal-document li + li { margin-top: 5px; }
.legal-highlight { margin: 18px; border: 1px solid #edcbc8 !important; border-radius: 14px; background: #fff8f7; }
.legal-highlight h2 { color: #8f1d16; }

.legal-site-footer { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px 18px; padding: 23px max(20px, env(safe-area-inset-right)) calc(23px + env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left)); border-top: 1px solid var(--line); background: #fff; color: var(--muted); font-size: 13px; text-align: center; }
.legal-site-footer nav { display: inline-flex; align-items: center; gap: 9px; }
.legal-site-footer a { font-size: 13px; text-decoration: none; }
.legal-site-footer a[aria-current="page"] { color: var(--ink); }

.public-brand { display: inline-flex; align-items: center; text-decoration: none; }
.sms-opt-in-shell { width: min(1080px, calc(100% - 36px)); }
.sms-opt-in-document .legal-document-header { padding-bottom: clamp(30px, 5vw, 44px); }
.sms-company-name { margin: 12px 0 0 !important; }
.sms-opt-in-document .legal-document-header h1 { margin-top: 5px; }
.sms-program-copy { background: #fff; }
.sms-program-copy strong { color: #8f1d16; }
.sms-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.sms-section-heading > div { min-width: 0; }
.sms-section-heading span { display: block; margin-bottom: 4px; color: var(--red-dark); font-size: 12px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.sms-section-heading h2 { margin-bottom: 0; }
.sms-section-heading > a { flex: 0 0 auto; font-size: 14px; }
.sms-example-frame { margin: 0; overflow: hidden; border: 1px solid #cfd6dc; border-radius: 14px; background: #e9ecef; box-shadow: 0 12px 30px rgba(18,25,32,.12); }
.sms-example-frame img { display: block; width: 100%; height: auto; background: #fff; }
.sms-example-frame figcaption { padding: 11px 14px; border-top: 1px solid #d9dee2; background: #fff; color: var(--muted); font-size: 13px; line-height: 1.5; }
.sms-consent-section blockquote { margin: 0; padding: 20px; border-left: 4px solid var(--red); border-radius: 0 10px 10px 0; background: #fff; color: #29333d; font-size: 16px; font-weight: 650; line-height: 1.72; }
.public-consent-example { padding: 20px; border-left: 4px solid var(--red); border-radius: 0 10px 10px 0; background: #fff; }
.public-consent-example label { display: grid; grid-template-columns: 22px minmax(0,1fr); align-items: start; gap: 12px; color: #29333d; cursor: pointer; }
.public-consent-example input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--red-dark); }
.public-consent-example label span { font-size: 16px; font-weight: 650; line-height: 1.72; }
.public-consent-example nav { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 14px 0 0 34px; }
.public-consent-example nav a { font-size: 14px; }
.public-consent-example nav span { color: #a5adb5; }
.public-consent-example small { display: block; margin: 8px 0 0 34px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.sms-consent-facts { display: grid; gap: 8px; margin-top: 18px; }
.sms-consent-facts p { margin: 0; padding: 12px 14px; border: 1px solid #edcbc8; border-radius: 9px; background: #fff; color: #7f1f19; }
.legal-action-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.legal-action-links a { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; padding: 0 18px; border: 1px solid var(--red-dark); border-radius: 9px; background: var(--red-dark); color: #fff; font-size: 14px; text-decoration: none; }
.legal-action-links a:hover { border-color: #841912; background: #841912; color: #fff; }
.legal-action-links a + a { border-color: #cfd5da; background: #fff; color: #28313a; }
.legal-action-links a + a:hover { border-color: #aeb6bd; background: #f8f9fa; color: #151b21; }
.sms-business-info address { margin-bottom: 18px; color: #35404a; font-size: 16px; font-style: normal; line-height: 1.7; }
.sms-business-info address strong { color: var(--ink); }

@media (max-width: 600px) {
  .legal-site-header { min-height: 76px; padding: 10px 16px; }
  .legal-site-header img { width: min(210px, 58vw); }
  .legal-portal-link { min-height: 42px; padding: 0 12px; font-size: 13px; }
  .legal-shell { width: 100%; margin: 0; }
  .legal-document { border-right: 0; border-left: 0; border-radius: 0; box-shadow: none; }
  .legal-document-header { padding: 30px 20px; }
  .legal-document section { padding: 24px 20px; }
  .legal-highlight { margin: 12px; border: 1px solid #edcbc8 !important; border-radius: 13px; }
  .sms-opt-in-shell { width: 100%; }
  .sms-section-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
  .sms-example-frame { border-right: 0; border-left: 0; border-radius: 0; box-shadow: none; }
  .sms-consent-section blockquote { padding: 16px; font-size: 15px; }
  .public-consent-example { padding: 16px; }
  .public-consent-example label span { font-size: 15px; }
  .public-consent-example nav, .public-consent-example small { margin-left: 32px; }
  .legal-action-links { display: grid; grid-template-columns: 1fr; }
  .legal-action-links a { width: 100%; }
  .legal-site-footer nav { justify-content: center; flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
