/* Legal, contact and not-found pages. Loaded after styles.css and built only
   from its tokens (--paper, --ink, --muted, --yellow, --line) and its shapes:
   the sticky header, the 18px panels, the pill buttons and the big footer
   wordmark. These pages run no script. */

.doc-page .header{display:grid;grid-template-columns:1fr auto 1fr;border-color:var(--line)}
.doc-page .header .brand{justify-self:start}
.doc-page .header nav a[aria-current=page]{text-decoration:underline;text-underline-offset:6px}
.doc-page main{padding-bottom:40px}

/* Title block */
.doc-hero{padding:72px 5% 0;max-width:1280px;margin:0 auto}
.doc-hero .intro-line{color:var(--muted)}
.doc-hero h1{margin-top:18px;max-width:16ch;font-size:clamp(42px,5.2vw,72px);font-weight:650;line-height:1.04;letter-spacing:-.05em;text-wrap:balance}
.doc-lede{margin-top:22px;max-width:620px;font-size:18px;line-height:1.6;color:var(--muted)}
.doc-meta{display:inline-flex;align-items:center;gap:8px;margin-top:26px;padding:9px 16px;border:1px solid var(--line);border-radius:100px;background:#fff;font-size:13px;line-height:1.4;color:var(--muted)}
.doc-meta .nowrap{white-space:nowrap}
.doc-meta::before{content:"";width:7px;height:7px;flex:none;border-radius:50%;background:var(--yellow);box-shadow:0 0 0 1px #24241f30}

/* Two columns: section index beside the text */
.doc-layout{display:grid;grid-template-columns:minmax(200px,250px) minmax(0,1fr);gap:clamp(40px,7vw,110px);align-items:start;max-width:1280px;margin:0 auto;padding:56px 5% 0}
.doc-layout.no-index{grid-template-columns:minmax(0,1fr)}
.doc-index{position:sticky;top:112px;max-height:calc(100vh - 136px);overflow:auto;padding-bottom:12px}
.doc-index-mobile{display:none}
.doc-index-label{font-size:12px;letter-spacing:.035em;color:var(--muted);margin:0 0 10px}
.doc-index ol{list-style:none;margin:0;padding:0;border-left:1px solid var(--line)}
.doc-index a{display:block;padding:8px 0 8px 16px;margin-left:-1px;border-left:2px solid transparent;font-size:14px;line-height:1.4;color:var(--muted);transition:color .2s,border-color .2s}
.doc-index a:hover{color:var(--ink);border-left-color:var(--ink)}
.doc-index a:focus-visible{outline-offset:2px}

/* Reading column: about 68 characters a line */
.doc{max-width:68ch;font-size:17px;line-height:1.75;color:var(--ink)}
.doc section{padding:40px 0;border-top:1px solid var(--line)}
.doc section:first-child{padding-top:0;border-top:0}
.doc h2{font-size:clamp(26px,2.4vw,32px);font-weight:500;line-height:1.2;letter-spacing:-.03em;scroll-margin-top:110px}
.doc h3{font-size:19px;font-weight:600;line-height:1.35;letter-spacing:-.015em}
.doc h2+*{margin-top:18px}
.doc p+p,.doc p+ol,.doc p+ul,.doc ol+p,.doc ul+p,.doc table+p,.doc .doc-table+p{margin-top:16px}
.doc ol,.doc ul{margin:0;padding-left:1.4em}
.doc h2+ol,.doc h2+ul{margin-top:18px}
.doc li+li{margin-top:8px}
.doc li::marker{color:var(--muted)}
.doc a{text-decoration:underline;text-decoration-color:#24241f60;text-underline-offset:3px;text-decoration-thickness:1px;transition:text-decoration-color .2s}
.doc a:hover{text-decoration-color:var(--ink)}
.doc strong{font-weight:600}

/* The operator line and other boxed statements */
.doc-callout{padding:22px 24px;border-radius:18px;background:#f0eddf;font-size:17px;line-height:1.65;color:var(--ink)}
.doc-callout+section{border-top:0;padding-top:0}
.doc>.doc-callout{margin-bottom:40px}
.doc-emphasis{font-weight:600}

/* Numbered opt-in steps: ink discs with yellow numbers, like the FAQ toggles */
.doc-steps{list-style:none;padding:0!important;counter-reset:step}
.doc-steps li{position:relative;padding-left:48px;min-height:30px;counter-increment:step}
.doc-steps li+li{margin-top:14px}
.doc-steps li::before{content:counter(step);position:absolute;left:0;top:1px;display:flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:50%;background:var(--ink);color:var(--yellow);font-size:13px;font-weight:600;line-height:1}

/* Status table; rows stack on phones */
.doc-table{width:100%;border-collapse:collapse;margin-top:22px;font-size:15px;line-height:1.55}
.doc-table th,.doc-table td{text-align:left;vertical-align:top;padding:14px 16px 14px 0;border-bottom:1px solid var(--line)}
.doc-table thead th{font-size:12px;font-weight:500;letter-spacing:.035em;color:var(--muted);padding-top:0;white-space:nowrap}
.doc-table tbody th{font-weight:600;white-space:nowrap}
.doc-table td{color:var(--muted)}
.doc-table td:last-child{color:var(--ink);padding-right:0;white-space:nowrap}

/* Sample text messages: bubbles in the homepage's SMS shape */
.doc-samples{margin-top:24px}
.doc-sample+.doc-sample{margin-top:34px}
.doc-sample p{margin-top:6px;font-size:15px;line-height:1.6;color:var(--muted)}
.sms-bubble{margin:14px 0 0;max-width:46ch;padding:16px 20px;border-radius:23px 23px 23px 5px;background:#f0eddf;font:inherit;font-size:16px;line-height:1.55;color:var(--ink);white-space:pre-wrap;overflow-wrap:anywhere}

/* Contact page */
.contact-card{margin-top:28px;padding:30px;border-radius:22px;background:#efeee7}
.contact-card h3{font-size:14px;font-weight:500;letter-spacing:.035em;color:var(--muted)}
.contact-card .button{margin-top:14px;gap:10px;min-height:52px;padding:16px 24px;font-size:15px;text-decoration:none;overflow-wrap:anywhere}
.contact-card p{margin-top:16px;font-size:15px;line-height:1.6;color:var(--muted)}
.doc-list-plain{list-style:none;padding:0!important}
.doc-list-plain li{position:relative;padding-left:22px}
.doc-list-plain li::before{content:"";position:absolute;left:2px;top:.72em;width:8px;height:8px;border-radius:50%;background:var(--yellow);box-shadow:0 0 0 1px #24241f30}

/* Not found */
.notfound{min-height:calc(100vh - 88px - 220px);display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:90px 24px 60px}
.notfound img{border-radius:19px;border:1px solid #26241c30;transform:rotate(-7deg);margin-bottom:30px}
.notfound h1{font-size:clamp(44px,5.5vw,76px);font-weight:650;line-height:1.04;letter-spacing:-.05em}
.notfound p{margin-top:18px;font-size:17px;line-height:1.6;color:var(--muted)}
.notfound .button{margin-top:30px}

/* Footer on these pages: same markup and styles as the homepage, static */
.doc-page .site-footer{margin-top:40px}
.doc-page .footer-links a[aria-current=page]{text-decoration:underline;text-underline-offset:4px}

@media(max-width:900px){
  .doc-layout{grid-template-columns:minmax(0,1fr);gap:0;padding-top:36px}
  .doc-index{display:none}
  .doc-index-mobile{display:block;margin-bottom:36px;border:1px solid var(--line)!important;border-radius:18px;background:#fff}
  .doc-index-mobile>summary{display:flex;justify-content:space-between;align-items:center;gap:16px;min-height:52px;padding:0 18px;font-size:15px;font-weight:500;line-height:1.4;cursor:pointer;list-style:none}
  .doc-index-mobile>summary::-webkit-details-marker{display:none}
  .doc-index-mobile>summary::after{content:"";width:9px;height:9px;flex:none;border-right:1.6px solid currentColor;border-bottom:1.6px solid currentColor;transform:translateY(-3px) rotate(45deg);transition:transform .2s}
  .doc-index-mobile[open]>summary::after{transform:translateY(2px) rotate(-135deg)}
  .doc-index-mobile ol{list-style:none;margin:0;padding:0 18px 8px}
  .doc-index-mobile a{display:block;padding:12px 0;border-top:1px solid var(--line);font-size:15px;line-height:1.4;color:var(--muted)}
  .doc-index-mobile a:hover{color:var(--ink)}
}
@media(max-width:600px){
  .doc-hero{padding:44px 24px 0}
  .doc-hero h1{font-size:clamp(38px,10.4vw,52px);letter-spacing:-.045em}
  .doc-lede{font-size:16px}
  .doc-meta{border-radius:16px;align-items:baseline}
  .doc-layout{padding:30px 24px 0}
  .doc{font-size:16px;line-height:1.7}
  .doc section{padding:32px 0}
  .doc-callout{padding:18px 20px;font-size:16px}
  .doc>.doc-callout{margin-bottom:32px}
  .doc-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
  .doc-table,.doc-table tbody,.doc-table tr,.doc-table th,.doc-table td{display:block;width:100%}
  .doc-table tr{padding:14px 0;border-bottom:1px solid var(--line)}
  .doc-table tbody th,.doc-table td{padding:0;border:0;white-space:normal}
  .doc-table td{margin-top:4px}
  .doc-table td:last-child::before{content:attr(data-label) " ";color:var(--muted)}
  .sms-bubble{font-size:15px;padding:14px 17px}
  .contact-card{padding:22px}
  .contact-card .button{width:100%}
  .notfound{padding:70px 24px 40px}
}
@media(prefers-reduced-motion:reduce){.doc-index a,.doc a,.doc-index-mobile>summary::after{transition:none}}
