/* Privacy, terms and cookie pages (Nov 28, 2026), from Yonder's css/legal.css. Laid out like Alma's privacy page
   (heyalma.ai/privacy): a large two-line heading, a contents card in a narrow left column that stays in view, and the
   chapters in a wide right column. Every colour comes from base.css. */
.legal-page { max-width: 1120px; padding-top: 24px; padding-bottom: 72px; }
.legal-head h1 { font-size: 64px; font-weight: 800; letter-spacing: -.025em; line-height: 1.04; margin: 28px 0 44px; }
.legal-head h1 em { display: block; font-style: italic; font-weight: 700; color: var(--ocean-600); }
.legal-head h1:focus { outline: none; }

.legal-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 52px; align-items: start; }
/* The column itself stays in view, since it's the grid item and can travel the full height of the chapters. */
.legal-toc { position: sticky; top: 24px; align-self: start; }
/* Long policies have more chapters than fit on screen, so the card scrolls on its own. */
.legal-toc-card { max-height: calc(100vh - 48px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.legal-toc-card { background: var(--white); border: 1px solid var(--line-soft); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.legal-toc-card a { display: block; padding: 13px 18px; font-size: 15px; line-height: 1.35; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line-soft); }
.legal-toc-card a:last-child { border-bottom: 0; }
.legal-toc-card a:hover { background: var(--ocean-50); }
.legal-toc-card a.active { background: var(--ocean-50); color: var(--ocean-700); font-weight: 600; box-shadow: inset 3px 0 0 var(--ocean-600); }
.legal-toc-mobile { display: none; }

.legal-body { max-width: 800px; min-width: 0; }
.legal-body h2 { font-size: 30px; font-weight: 700; margin: 44px 0 12px; scroll-margin-top: 24px; }
.legal-body h2:first-child, .legal-body .legal-toc-mobile + h2 { margin-top: 0; }
.legal-body h3 { font-size: 20px; font-weight: 600; margin: 26px 0 8px; }
.legal-body p { font-size: 18px; line-height: 1.65; color: var(--ink-2); margin-bottom: 14px; }
.legal-body ul, .legal-body ol { margin: 0 0 18px; padding: 0; }
.legal-body ul li { position: relative; padding-left: 24px; font-size: 18px; line-height: 1.6; color: var(--ink-2); margin-bottom: 8px; }
.legal-body ul li::before { content: ""; position: absolute; left: 5px; top: .68em; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.legal-body ol { list-style: decimal; padding-left: 24px; }
.legal-body ol li { font-size: 18px; line-height: 1.6; color: var(--ink-2); margin-bottom: 8px; padding-left: 4px; }
.legal-body strong { color: var(--ink); }
.legal-body table { width: 100%; border-collapse: collapse; margin: 6px 0 20px; font-size: 16px; }
.legal-body th, .legal-body td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.legal-body th { color: var(--ink); font-weight: 600; background: var(--panel); }
.legal-body td code { white-space: nowrap; }
/* The cookie inventory: on a narrow phone the table scrolls sideways inside its box, never the page. */
.legal-table { overflow-x: auto; margin: 6px 0 20px; }
.legal-table table { margin: 0; min-width: 560px; }
.legal-updated { margin-top: 44px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 15px; color: var(--ink-3); }

@media (max-width: 900px) {
  .legal-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .legal-toc { display: none; }
  /* On phones the contents fold into one box above the text. */
  .legal-toc-mobile { display: block; margin-bottom: 28px; background: var(--white); border: 1px solid var(--line-soft); border-radius: 14px; box-shadow: var(--shadow); }
  .legal-toc-mobile summary { min-height: 52px; padding: 14px 18px; font-weight: 700; cursor: pointer; list-style-position: inside; }
  .legal-toc-mobile a { display: block; padding: 12px 18px; border-top: 1px solid var(--line-soft); color: var(--ink); text-decoration: none; }
}
@media (max-width: 720px) {
  .legal-head h1 { font-size: 40px; margin: 16px 0 28px; }
  .legal-body h2 { font-size: 26px; }
  .legal-body p, .legal-body ul li, .legal-body ol li { font-size: 17px; }
}

/* The date sits at the top, as the policies say. */
.legal-date { font-size: 15.5px !important; color: var(--ink-3) !important; margin-bottom: 18px !important; }
.legal-address { color: var(--ink) !important; }
.legal-body a { overflow-wrap: anywhere; }
