/* Myro Control legal pages (privacy_policy.asp, terms_of_use.asp, eula.asp).
   Tokens, type and rhythm come from the Myro:Home design system (/myrohome/assets/css/site.css).
   Dark is :root; light follows prefers-color-scheme or html[data-theme="light"]. */

:root {
  --bg: #0b0b0d; --bg-elev: #141417; --bg-elev-2: #1c1c20; --bg-glass: rgba(11, 11, 13, 0.74);
  --text: #f5f5f7; --text-2: #a1a1a8; --text-3: #8e8e95; --text-legal: #8e8e95;
  --line: rgba(255, 255, 255, 0.09); --line-strong: rgba(255, 255, 255, 0.16);
  --accent: #f0643a; --accent-text: #ff7a50; --accent-ink: #140804;
  --glow: rgba(240, 100, 58, 0.20); --focus: #f0643a;
  --confirm-bg: rgba(255, 200, 40, 0.11); --confirm-line: #ffc93c; --confirm-label: #ffd466; --confirm-text: #f5f5f7;
  color-scheme: dark;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Inter, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --fs-h1: clamp(2.5rem, 1.7rem + 3.4vw, 4.25rem);   /* 40 -> 68 */
  --fs-h2: clamp(1.375rem, 1.2rem + 0.6vw, 1.75rem);  /* 22 -> 28 */
  --fs-lead: clamp(1.1875rem, 1.05rem + 0.6vw, 1.5rem);
  --max: 1200px; --gutter: clamp(16px, 4vw, 40px); --header-h: 52px;
  --r-sm: 10px; --r: 16px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --print-bg: #ffffff; --print-text: #000000; --print-muted: #333333; --print-line: #bbbbbb;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f5f5f7; --bg-elev: #ffffff; --bg-elev-2: #ebebee; --bg-glass: rgba(245, 245, 247, 0.8);
    --text: #1d1d1f; --text-2: #4a4a50; --text-3: #66666b; --text-legal: #66666b;
    --line: rgba(0, 0, 0, 0.09); --line-strong: rgba(0, 0, 0, 0.16);
    --accent-text: #b53d17; --glow: rgba(240, 100, 58, 0.14); --focus: #c9440f;
    --confirm-bg: #fff3bf; --confirm-line: #d9a400; --confirm-label: #6e4c00; --confirm-text: #1d1d1f;
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #f5f5f7; --bg-elev: #ffffff; --bg-elev-2: #ebebee; --bg-glass: rgba(245, 245, 247, 0.8);
  --text: #1d1d1f; --text-2: #4a4a50; --text-3: #66666b; --text-legal: #66666b;
  --line: rgba(0, 0, 0, 0.09); --line-strong: rgba(0, 0, 0, 0.16);
  --accent-text: #b53d17; --glow: rgba(240, 100, 58, 0.14); --focus: #c9440f;
  --confirm-bg: #fff3bf; --confirm-line: #d9a400; --confirm-label: #6e4c00; --confirm-text: #1d1d1f;
  color-scheme: light;
}

/* base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 20px); }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 1.0625rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden; }
h1, h2, h3, p, ul, ol { margin: 0; }
svg { display: block; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 0.18em; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: var(--accent-ink); }
code { font-family: var(--font-mono); font-size: 0.88em; background: var(--bg-elev-2); border-radius: 6px; padding: 0.1em 0.4em; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 100; padding: 10px 16px; border-radius: var(--r-sm); background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.skip-link:focus { top: 56px; text-decoration: none; }
.container { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

/* header */
.lg-header { position: sticky; top: 0; z-index: 50; background: var(--bg-glass); border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); }
.lg-header__inner { display: flex; align-items: center; gap: 12px 24px; min-height: var(--header-h); }
.wordmark { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 650; font-size: 1.0625rem; letter-spacing: -0.015em; white-space: nowrap; }
.wordmark:hover { text-decoration: none; }
.wordmark svg { width: 30px; height: auto; flex: none; }
.wordmark__sub { padding-left: 10px; border-left: 1px solid var(--line-strong); color: var(--text-2); font-weight: 500; }
.lg-nav { margin-left: auto; }
.lg-nav ul { display: flex; align-items: center; gap: 4px 22px; list-style: none; padding: 0; }
.lg-nav a { display: inline-flex; align-items: center; gap: 3px; padding: 6px 0; font-size: 0.875rem; color: var(--text-2); white-space: nowrap; border-bottom: 2px solid transparent; }
.lg-nav a:hover { color: var(--text); text-decoration: none; }
.lg-nav a[aria-current="page"] { color: var(--text); font-weight: 600; border-bottom-color: var(--accent); }
.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; flex: none; border: 0; border-radius: 50%; background: transparent; color: var(--text-2); cursor: pointer; padding: 0; }
.icon-btn:hover { color: var(--text); background: var(--bg-elev-2); }
.icon-btn svg { width: 18px; height: 18px; }
.theme-toggle { display: none; }
.js .theme-toggle { display: inline-grid; }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: block; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) .theme-toggle .icon-sun { display: none; }
  :root:not([data-theme]) .theme-toggle .icon-moon { display: block; }
}
@media (max-width: 639px) {
  .lg-header__inner { flex-wrap: wrap; padding-top: 6px; }
  .theme-toggle { margin-left: auto; }
  .lg-nav { order: 3; width: 100%; margin: -6px 0 0; }
  .lg-nav ul { gap: 0 20px; }
  .lg-nav a { padding: 6px 0 8px; }
}

/* hero */
.lg-hero { position: relative; overflow: hidden; isolation: isolate; padding: clamp(40px, 6vw, 80px) 0 clamp(36px, 5vw, 64px); }
.lg-hero::before { content: ""; position: absolute; z-index: -1; left: 50%; top: -55%; width: min(1200px, 160vw); height: 640px; transform: translateX(-50%);
  background: radial-gradient(closest-side, var(--glow), transparent 72%); }
.kicker { display: block; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; line-height: 1.5; color: var(--accent-text); }
.lg-title { margin-top: 12px; font-size: var(--fs-h1); font-weight: 700; line-height: 1.04; letter-spacing: -0.035em; color: var(--text); text-wrap: balance; }
.lg-lead { margin-top: 20px; max-width: 40ch; font-size: var(--fs-lead); line-height: 1.45; letter-spacing: -0.01em; color: var(--text-2); text-wrap: pretty; }
.lg-meta { display: flex; flex-wrap: wrap; gap: 8px 10px; margin: 24px 0 0; padding: 0; list-style: none; font-size: 0.875rem; color: var(--text-2); }
.lg-meta li { display: inline-flex; align-items: center; min-height: 30px; padding: 0 12px; border-radius: 999px; background: var(--bg-elev-2); }
.lg-meta li:first-child { color: var(--text); font-weight: 550; }

/* body: index + document */
.lg-body { padding-bottom: clamp(56px, 7vw, 96px); }
.with-toc { display: block; }
.toc { display: none; }
@media (min-width: 1024px) {
  .with-toc { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 64px; align-items: start; }
  .toc { display: block; position: sticky; top: calc(var(--header-h) + 32px); max-height: calc(100vh - var(--header-h) - 56px); overflow-y: auto; font-size: 0.875rem; }
  .toc__title { font-size: 0.75rem; font-weight: 650; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); margin-bottom: 10px; }
  .toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
  .toc a { display: block; padding: 6px 0 6px 16px; margin-left: -1px; border-left: 2px solid transparent; color: var(--text-2); line-height: 1.35; }
  .toc a:hover { color: var(--text); text-decoration: none; }
  .toc a[aria-current="true"] { color: var(--text); border-left-color: var(--accent); font-weight: 600; }
  .toc__other { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
  .toc__other a { border-left: 0; padding-left: 0; margin-left: 0; }
  .jump { display: none; }
}

/* phone and tablet jump list */
.jump { margin-bottom: 40px; padding: 18px 20px 20px; border-radius: var(--r); background: var(--bg-elev); border: 1px solid var(--line); }
.jump__title { font-size: 0.75rem; font-weight: 650; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); margin-bottom: 8px; }
.jump ol { columns: 2 128px; column-gap: 24px; margin: 0; padding: 0; list-style: none; font-size: 0.9375rem; line-height: 1.35; }
.jump li { break-inside: avoid; }
.jump a { display: block; padding: 7px 0; color: var(--text); }

/* document */
.doc { max-width: 68ch; color: var(--text-2); }
.doc > section + section { margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--line); }
.doc > .doc__intro { font-size: 1.125rem; color: var(--text); padding-bottom: 8px; }
.doc > .doc__intro + section { margin-top: 32px; }
.doc h2 { font-size: var(--fs-h2); line-height: 1.18; letter-spacing: -0.02em; font-weight: 650; color: var(--text); text-wrap: balance; scroll-margin-top: calc(var(--header-h) + 24px); }
.doc h3 { margin-top: 32px; font-size: 1.1875rem; line-height: 1.3; letter-spacing: -0.01em; font-weight: 650; color: var(--text); scroll-margin-top: calc(var(--header-h) + 24px); }
.doc p, .doc ul, .doc aside.confirm { margin-top: 14px; }
.doc h2 + p, .doc h2 + ul, .doc h3 + p, .doc h3 + ul { margin-top: 12px; }
.doc ul { padding-left: 1.25em; }
.doc li { padding-left: 0.2em; }
.doc li + li { margin-top: 8px; }
.doc li::marker { color: var(--text-3); }
.doc strong { color: var(--text); font-weight: 600; }
.doc a { text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); text-underline-offset: 0.18em; overflow-wrap: anywhere; }
.doc a:hover { text-decoration-color: currentColor; }
.doc .caps { font-size: 0.9375rem; line-height: 1.6; letter-spacing: 0.01em; }
.doc .contact { color: var(--text); }

/* heading anchors */
.anchor { display: inline-block; width: 0; white-space: nowrap; padding-left: 0.3em; color: var(--text-3); font-weight: 500; text-decoration: none !important; opacity: 0; transition: opacity 0.15s var(--ease); }
h2:hover .anchor, h3:hover .anchor, .anchor:focus-visible { opacity: 1; }
.anchor:hover { color: var(--accent-text); }
@media (hover: none) { .anchor { opacity: 0.55; } }
@media (max-width: 639px) { .anchor { display: none; } }

/* privacy: the short version */
.doc .summary { margin-top: 18px; padding: 20px 22px; list-style: none; border-radius: var(--r); background: var(--bg-elev); border: 1px solid var(--line); color: var(--text); }
.doc .summary li { position: relative; padding-left: 30px; }
.doc .summary li + li { margin-top: 12px; }
.doc .summary li::before { content: ""; position: absolute; left: 3px; top: 0.42em; width: 12px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }

/* owner-to-confirm notes */
.confirm { color: var(--confirm-text); background: var(--confirm-bg); }
aside.confirm, li > .confirm--block { display: block; padding: 12px 16px; border-left: 3px solid var(--confirm-line); border-radius: 0 var(--r-sm) var(--r-sm) 0; font-size: 0.9375rem; line-height: 1.5; }
li > .confirm--block { margin-top: 8px; }
mark.confirm { padding: 1px 6px; border-radius: 4px; border-bottom: 2px solid var(--confirm-line); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.confirm__label { font-size: 0.6875rem; font-weight: 750; letter-spacing: 0.12em; text-transform: uppercase; color: var(--confirm-label); margin-right: 6px; white-space: nowrap; }
aside.confirm .confirm__label, li > .confirm--block .confirm__label { display: block; margin-bottom: 2px; }
mark.confirm .confirm__label { white-space: normal; }

/* footer */
.lg-footer { border-top: 1px solid var(--line); padding: 48px 0 40px; font-size: 0.875rem; color: var(--text-2); }
.lg-footer__top { display: grid; grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.lg-footer__about p { margin-top: 14px; max-width: 34ch; line-height: 1.55; }
.lg-footer__about .company { color: var(--text); font-weight: 550; }
.lg-footer h2 { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text); margin-bottom: 12px; }
.lg-footer ul { list-style: none; padding: 0; }
.lg-footer li + li { margin-top: 8px; }
.lg-footer a { color: var(--text-2); }
.lg-footer a:hover { color: var(--text); }
.lg-footer a.wordmark { color: var(--text); }
.lg-footer a[aria-current="page"] { color: var(--text); font-weight: 600; }
.lg-footer__legal { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); display: grid; gap: 8px; line-height: 1.55; color: var(--text-legal); font-size: 0.8125rem; }
@media (max-width: 899px) {
  .lg-footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg-footer__about { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* print: black on white, the document only */
@media print {
  :root, :root[data-theme] {
    --bg: var(--print-bg); --bg-elev: var(--print-bg); --bg-elev-2: #f0f0f0; --text: var(--print-text); --text-2: var(--print-text);
    --text-3: var(--print-muted); --text-legal: var(--print-muted); --line: var(--print-line); --line-strong: var(--print-line);
    --accent-text: var(--print-text); --confirm-bg: #fff3bf; --confirm-line: #000; --confirm-label: #000; --confirm-text: #000;
  }
  nav#myro_sites, #myro_sites, .lg-header, .skip-link, .theme-toggle, .toc, .jump, .anchor, .lg-footer__top { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; line-height: 1.5; }
  .lg-hero { padding: 0 0 16pt; }
  .lg-hero::before { display: none; }
  .lg-title { font-size: 26pt; }
  .lg-lead { font-size: 13pt; max-width: none; }
  .lg-meta li { background: none; padding: 0; min-height: 0; }
  .lg-meta li + li::before { content: "\00B7"; margin-right: 10px; }
  .doc { max-width: none; }
  .doc > section + section { margin-top: 18pt; padding-top: 12pt; }
  .doc h2, .doc h3 { break-after: avoid; }
  .doc li, .doc p { orphans: 3; widows: 3; }
  .doc .summary { border: 1px solid #bbb; }
  .doc .summary li::before { border-color: #000; }
  .doc a { color: #000; text-decoration: underline; }
  .lg-footer { padding: 16pt 0 0; }
  .lg-footer__legal { margin-top: 0; }
}
