/* Shared styles for MyApp Vision privacy policies and terms of use */
:root {
  --ink: #140F33;
  --ink-2: #221A52;
  --ink-3: #31286E;
  --mist: #F3F1FB;
  --paper: #FFFFFF;
  --text: #1B1640;
  --body-text: #34305A;
  --muted: #5C5880;
  --line: #DDD8F0;
  --soft: #F0EDFD;
  --saffron: #FF9A1F;
  --sun: #FFCB2E;
  --coral: #FF6F59;
  --sky: #6C8CFF;
  --on-dark: #F3F1FB;
  --on-dark-muted: #B7B1DA;
  --display: "Bricolage Grotesque", "Avenir Next", system-ui, sans-serif;
  --body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0; font-family: var(--body); font-size: 1.0625rem; line-height: 1.6;
  color: var(--text); background: var(--mist); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 8px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Top bar ---------- */
.lnav { position: sticky; top: 0; z-index: 40; background: rgba(20, 15, 51, .9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.lnav-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--on-dark); font-family: var(--display); font-weight: 700; font-size: 1.08rem; letter-spacing: -0.01em; }
.brand svg { width: 30px; height: 30px; flex: none; }
.lnav-links { display: flex; gap: 22px; }
.lnav-links a { color: var(--on-dark-muted); text-decoration: none; font-size: .93rem; font-weight: 500; transition: color .2s; }
.lnav-links a:hover { color: var(--on-dark); }

/* ---------- Hero ---------- */
.lhero {
  position: relative; isolation: isolate; color: var(--on-dark); overflow: hidden;
  background: radial-gradient(55% 80% at 85% 20%, rgba(108, 140, 255, .22), transparent 70%), var(--ink);
  padding: clamp(40px, 6vw, 72px) 0 clamp(88px, 10vw, 120px);
}
.lhero::after {
  content: ""; position: absolute; inset: auto 0 -1px 0; height: 56px; z-index: -1;
  background: var(--mist); clip-path: ellipse(70% 100% at 50% 100%);
}
.lhero-app { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.lhero-app img { width: 56px; height: 56px; border-radius: 15px; box-shadow: 0 0 0 1px rgba(255,255,255,.15), 0 14px 30px -12px rgba(0,0,0,.6); }
.lhero-app span { font-weight: 600; color: var(--on-dark-muted); }
.lhero-app b { display: block; font: 700 1.15rem/1.2 var(--display); color: var(--on-dark); letter-spacing: -0.01em; }
.lhero h1 { font: 800 clamp(2.4rem, 6vw, 4.4rem)/1 var(--display); letter-spacing: -0.04em; margin: 0; }
.lhero-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 30px; }
.tabs { display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(255,255,255,.08); }
.tabs a { text-decoration: none; color: var(--on-dark-muted); font-weight: 600; font-size: .93rem; padding: 10px 18px; border-radius: 999px; transition: background .2s, color .2s; }
.tabs a:hover { color: var(--on-dark); }
.tabs a[aria-current="page"] { background: var(--on-dark); color: var(--ink); }
.print-btn {
  display: inline-flex; align-items: center; gap: 8px; border: 0; cursor: pointer; background: transparent;
  color: var(--on-dark-muted); font: 600 .9rem/1 var(--body); padding: 10px 14px; border-radius: 999px;
  box-shadow: inset 0 0 0 1.5px rgba(243,241,251,.25); transition: color .2s, box-shadow .2s;
}
.print-btn:hover { color: var(--on-dark); box-shadow: inset 0 0 0 1.5px var(--on-dark); }
.print-btn svg { width: 16px; height: 16px; }

/* ---------- Body layout ---------- */
.lbody { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; margin-top: -48px; position: relative; z-index: 2; }
.toc { position: sticky; top: 88px; padding-top: 64px; }
.toc details { border: 0; }
.toc summary { list-style: none; font-weight: 600; font-size: .9rem; color: var(--muted); margin-bottom: 12px; cursor: default; }
.toc summary::-webkit-details-marker { display: none; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); max-height: calc(100vh - 180px); overflow: auto; }
.toc a {
  display: block; text-decoration: none; color: var(--muted); font-size: .9rem; line-height: 1.35;
  padding: 7px 0 7px 16px; margin-left: -2px; border-left: 2px solid transparent; transition: color .2s, border-color .2s;
}
.toc a:hover { color: var(--text); }
.toc a.is-active { color: var(--text); border-left-color: var(--saffron); font-weight: 600; }

.doc {
  background: var(--paper); border-radius: 28px; box-shadow: 0 0 0 1px var(--line), 0 30px 60px -40px rgba(20,15,51,.35);
  padding: clamp(28px, 5vw, 64px); min-width: 0;
}
.doc-inner { max-width: 70ch; }
.doc-title { font: 700 clamp(1.3rem, 2.4vw, 1.6rem)/1.2 var(--display); letter-spacing: -0.015em; margin: 0 0 24px; color: var(--text); }
.doc-meta { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 36px; padding: 0; }
.doc-meta div { background: var(--soft); border-radius: 14px; padding: 10px 16px; min-width: 0; }
.doc-meta dt { font-size: .78rem; font-weight: 600; color: var(--muted); }
.doc-meta dd { margin: 2px 0 0; font-weight: 600; font-size: .95rem; color: var(--text); overflow-wrap: anywhere; }

.doc h2 {
  font: 700 clamp(1.25rem, 2.2vw, 1.5rem)/1.25 var(--display); letter-spacing: -0.015em; color: var(--text);
  margin: 48px 0 14px; padding-top: 28px; border-top: 1px solid var(--line);
}
.doc .doc-meta + h2, .doc .doc-title + h2 { border-top: 0; padding-top: 0; margin-top: 8px; }
.doc h3 { font: 700 1.08rem/1.35 var(--body); color: var(--text); margin: 28px 0 10px; }
.doc p { margin: 0 0 14px; color: var(--body-text); }
.doc ul { margin: 0 0 18px; padding: 0; list-style: none; }
.doc li { position: relative; padding-left: 26px; margin-bottom: 9px; color: var(--body-text); }
.doc li::before { content: ""; position: absolute; left: 6px; top: .62em; width: 7px; height: 7px; border-radius: 2px; background: var(--accent, var(--saffron)); }
.doc ul.plain li { padding-left: 0; }
.doc ul.plain li::before { display: none; }
.doc a { color: var(--ink-3); font-weight: 600; text-decoration: underline; text-decoration-color: var(--line); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.doc a:hover { text-decoration-color: currentColor; }
.doc .callout { background: #FFF6E5; border-left: 4px solid var(--saffron); border-radius: 0 14px 14px 0; padding: 14px 18px; color: var(--text); margin: 6px 0 20px; }
.doc .contact-line { font-weight: 600; color: var(--text); }

/* ---------- More documents ---------- */
.lmore { padding: clamp(56px, 8vw, 96px) 0; }
.lmore h2 { font: 700 clamp(1.6rem, 3.4vw, 2.3rem)/1.05 var(--display); letter-spacing: -0.025em; margin: 0 0 28px; }
.lmore-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.lmore-card { background: var(--paper); border-radius: 20px; padding: 18px; box-shadow: 0 0 0 1px var(--line); }
.lmore-card.is-current { box-shadow: 0 0 0 2px var(--ink-3); }
.lmore-card header { display: flex; align-items: center; gap: 12px; font-weight: 600; margin-bottom: 14px; line-height: 1.25; }
.lmore-card img { width: 38px; height: 38px; border-radius: 10px; flex: none; }
.lmore-card nav { display: flex; flex-wrap: wrap; gap: 8px; }
.lmore-card a {
  text-decoration: none; font-size: .86rem; font-weight: 600; color: var(--ink-3); background: var(--soft);
  padding: 7px 12px; border-radius: 999px; transition: background .2s, color .2s;
}
.lmore-card a:hover, .lmore-card a[aria-current="page"] { background: var(--ink); color: #fff; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--on-dark-muted); padding: 36px 0; font-size: .92rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--on-dark); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .lbody { grid-template-columns: 1fr; gap: 16px; }
  .toc { position: static; padding-top: 0; order: 0; }
  .toc details { background: var(--paper); border-radius: 20px; box-shadow: 0 0 0 1px var(--line); padding: 14px 18px; }
  .toc summary { cursor: pointer; margin: 0; display: flex; justify-content: space-between; align-items: center; color: var(--text); }
  .toc summary::after { content: ""; width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-3px); transition: transform .2s; }
  .toc details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
  .toc details[open] ol { margin-top: 12px; }
  .toc ol { max-height: none; }
}
@media (max-width: 560px) {
  .lnav-links a.hide-sm { display: none; }
  .doc { border-radius: 22px; }
  .tabs a { padding: 9px 14px; font-size: .88rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
@media print {
  .lnav, .tabs, .print-btn, .toc, .lmore, .footer { display: none !important; }
  body { background: #fff; }
  .lhero { background: #fff; color: #000; padding: 0 0 16px; }
  .lhero::after { display: none; }
  .lhero-app b, .lhero-app span { color: #000; }
  .lbody { display: block; margin: 0; }
  .doc { box-shadow: none; padding: 0; }
  .doc-inner { max-width: none; }
}
