/* Boxmello support: local assets, system fonts, and no remote dependencies. */
:root {
  color-scheme: light;
  --paper: #fbf8f1;
  --surface: #fffdf8;
  --ink: #2e261f;
  --muted: #655f53;
  --line: #ddd8cc;
  --mint: #dceee3;
  --mint-light: #eef5ed;
  --green: #285846;
  --green-dark: #1c4032;
  --kraft: #ecd9b9;
  --radius: 22px;
  --font: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 2rem; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--green); text-underline-offset: 0.2em; }
a:hover { color: var(--green-dark); }
a, button, summary { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 5px;
  border-radius: 5px;
}
::selection { color: var(--ink); background: #bde4ce; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.16; letter-spacing: -0.035em; overflow-wrap: anywhere; }
h1 { font-size: clamp(2.4rem, 5vw, 4.7rem); font-weight: 750; }
h2 { font-size: clamp(1.65rem, 3vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 700; }
p + p { margin-top: 1rem; }
ul, ol { padding-left: 1.4rem; }
li + li { margin-top: 0.4rem; }
strong { font-weight: 700; }
.container, .header-inner, .footer-inner {
  width: min(1120px, calc(100% - 64px));
  margin-inline: auto;
}
.skip-link {
  position: absolute;
  top: 12px;
  left: 16px;
  z-index: 20;
  padding: 10px 18px;
  transform: translateY(-160%);
  background: var(--green);
  border-radius: 8px;
  color: white;
  font-weight: 650;
}
.skip-link:focus { transform: translateY(0); color: white; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner {
  display: flex;
  align-items: center;
  min-height: 98px;
  gap: 36px;
}
.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  flex: 0 0 auto;
}
.wordmark { width: 178px; }
.main-nav, .language-nav { display: flex; align-items: center; gap: 6px; }
.main-nav { margin-left: auto; flex-wrap: wrap; }
.main-nav a, .language-nav a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  padding: 7px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
}
.main-nav a:hover, .language-nav a:hover { background: var(--mint-light); color: var(--green); }
.main-nav a[aria-current="page"], .language-nav a[aria-current="page"] {
  background: var(--mint);
  color: var(--green-dark);
}
.language-nav { gap: 1px; padding-left: 16px; border-left: 1px solid var(--line); }
.language-nav a { min-width: 44px; padding-inline: 8px; font-size: 0.75rem; letter-spacing: 0.035em; }
.language-picker { position: relative; flex: 0 0 auto; min-width: 0; max-width: 210px; }
.language-picker > summary {
  display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 12px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--surface);
  color: var(--green-dark); font-size: 0.8rem; font-weight: 650; line-height: 1.4;
  cursor: pointer; list-style: none;
}
.language-picker > summary::-webkit-details-marker { display: none; }
.language-picker > summary svg { flex: 0 0 18px; }
.language-picker > summary span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.language-menu {
  position: absolute; z-index: 30; inset-inline-end: 0; top: calc(100% + 8px);
  width: min(310px, calc(100vw - 40px)); max-height: min(70vh, 490px); overflow-y: auto;
  padding: 8px; border: 1px solid var(--line); border-radius: 14px;
  background: var(--surface); box-shadow: 0 10px 35px #2e261f20;
}
.language-menu a {
  display: flex; align-items: center; min-height: 44px; padding: 8px 12px;
  border-radius: 8px; color: var(--ink); font-size: 0.875rem; text-decoration: none;
}
.language-menu a:hover, .language-menu a[aria-current="page"] { background: var(--mint); color: var(--green-dark); }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(250px, 1fr);
  align-items: center;
  gap: 70px;
  padding-block: 76px 56px;
}
.eyebrow {
  margin-bottom: 18px;
  color: var(--green);
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.13em;
  line-height: 1.5;
  text-transform: uppercase;
}
.hero h1 { max-width: 11ch; }
.lede { color: var(--muted); font-size: 1.125rem; line-height: 1.75; }
.hero .lede { max-width: 49ch; margin-top: 24px; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 11px 21px;
  border: 1px solid var(--green);
  border-radius: 10px;
  background: var(--green);
  color: white;
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.5;
  text-decoration: none;
  transition: background 160ms ease, transform 160ms ease;
}
.button:hover { background: var(--green-dark); border-color: var(--green-dark); color: white; transform: translateY(-1px); }
.button.secondary { background: transparent; border-color: #c6cbbd; color: var(--green-dark); }
.button.secondary:hover { background: var(--mint-light); border-color: var(--green); }
.hero-art {
  display: grid;
  place-items: center;
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  padding: 35px;
  border: 1px solid #cedfce;
  border-radius: 50% 50% 38% 42%;
  background: var(--mint);
}
.app-icon { width: 100%; max-width: 280px; border-radius: 26%; box-shadow: 0 14px 30px #44301b18; transform: rotate(-5deg); }
.quick-facts { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 64px; }
.quick-facts > span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 5px 13px;
  border: 1px solid var(--line);
  border-radius: 50px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 550;
  line-height: 1.5;
}
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-block: 0 26px; }
.section-heading h2 { flex: 1 1 50%; min-width: 0; }
.section-heading p { flex: 0 1 44ch; min-width: 0; max-width: 44ch; color: var(--muted); font-size: 0.9rem; }
.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.doc-card {
  display: flex;
  flex-direction: column;
  align-items: start;
  min-height: 225px;
  padding: 28px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}
.doc-card:hover { transform: translateY(-3px); border-color: #9cae99; background: #f5f9ef; color: var(--ink); }
.card-kicker { margin-bottom: 17px; color: var(--green); font-size: 0.7rem; font-weight: 750; letter-spacing: 0.12em; line-height: 1.5; text-transform: uppercase; }
.doc-card h3 { margin-bottom: 12px; font-size: 1.4rem; }
.doc-card p { max-width: 52ch; color: var(--muted); font-size: 0.9rem; line-height: 1.65; }
.card-arrow { display: inline-flex; align-items: center; min-height: 30px; margin-top: auto; padding-top: 18px; color: var(--green); font-size: 0.85rem; font-weight: 650; }
.support-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 48px; margin-top: 64px; align-items: start; }
.contact-card { padding: 32px; border: 1px solid #d2dfcd; border-radius: var(--radius); background: var(--mint-light); }
.contact-card h2 { margin-bottom: 18px; font-size: 1.7rem; }
.contact-card p { color: var(--muted); font-size: 0.9rem; }
.contact-email { display: inline-block; max-width: 100%; padding-block: 10px; overflow-wrap: anywhere; font-weight: 700; }
.contact-card ul { color: var(--muted); font-size: 0.9rem; }
.contact-card .button { margin-top: 20px; }
.faq h2 { margin-bottom: 20px; font-size: 1.7rem; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-of-type { border-top: 1px solid var(--line); }
.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  min-height: 68px;
  padding-block: 19px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 650;
  line-height: 1.5;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; flex: 0 0 20px; color: var(--green); font-size: 1.3rem; font-weight: 400; text-align: center; }
.faq-item[open] summary::after { content: "−"; }
.faq-item > div { padding: 0 26px 22px 0; color: var(--muted); font-size: 0.9rem; }
.notice { margin-top: 40px; padding: 22px 26px; border-left: 3px solid #a88a5e; border-radius: 0 12px 12px 0; background: #f3ebdc; color: #554a38; font-size: 0.875rem; }
.page-home main { padding-bottom: 70px; }
.legal-layout { display: grid; grid-template-columns: 225px minmax(0, 1fr); gap: 48px; align-items: start; padding-block: 48px 72px; }
.toc { position: sticky; top: 28px; font-size: 0.8rem; }
.mobile-toc { display: none; }
.toc > h2, .toc > p, .toc nav > h2, .toc nav > p { margin: 24px 0 12px; color: var(--muted); font-size: 0.7rem; font-weight: 750; letter-spacing: 0.1em; text-transform: uppercase; }
.toc ol { margin: 0; padding: 0; list-style: none; }
.toc li + li { margin-top: 0; }
.toc a { display: flex; align-items: center; min-height: 44px; padding: 8px 12px; border-radius: 8px; color: var(--muted); line-height: 1.4; text-decoration: none; }
.toc a:hover { background: var(--mint); color: var(--green-dark); }
.toc .back-link, .back-link { display: inline-flex; align-items: center; min-height: 44px; padding-block: 8px; color: var(--green); font-size: 0.825rem; font-weight: 650; text-decoration: none; }
.legal-content { min-width: 0; padding: 42px 46px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.legal-heading { padding-bottom: 30px; margin-bottom: 34px; border-bottom: 1px solid var(--line); }
.legal-heading h1 { font-size: clamp(2rem, 4vw, 3.5rem); hyphens: auto; }
.legal-heading .eyebrow { margin-bottom: 14px; }
.legal-heading .lede { margin-top: 18px; font-size: 1rem; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 23px; color: var(--muted); font-size: 0.75rem; }
.legal-content section { scroll-margin-top: 24px; }
.legal-content section + section { margin-top: 35px; padding-top: 32px; border-top: 1px solid #e8e3d9; }
.legal-content h2 { margin-bottom: 18px; font-size: 1.45rem; letter-spacing: -0.025em; }
.legal-content h3 { margin-top: 24px; margin-bottom: 12px; font-size: 1.05rem; letter-spacing: -0.015em; }
.legal-content p, .legal-content li { font-size: 0.925rem; }
.legal-content ul, .legal-content ol { margin-block: 16px; }
.legal-content a { overflow-wrap: anywhere; }
.callout { margin-block: 24px; padding: 20px 22px; border: 1px solid #cfddc9; border-radius: 12px; background: var(--mint-light); font-size: 0.9rem; }
.callout p, .callout li { font-size: inherit; }
.table-wrap { max-width: 100%; margin-block: 24px; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; font-size: 0.8rem; line-height: 1.6; text-align: start; }
th, td { padding: 14px 16px; vertical-align: top; border-bottom: 1px solid var(--line); }
th { background: var(--mint-light); color: var(--green-dark); font-weight: 700; }
tr:last-child td { border-bottom: 0; }
td { min-width: 120px; }
td:first-child { font-weight: 600; }
.license-block { margin-top: 14px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.license-block summary { min-height: 44px; padding-block: 10px; cursor: pointer; font-size: 0.9rem; font-weight: 650; }
.license-block pre { max-width: 100%; margin-block: 12px; padding-block: 14px; overflow-wrap: anywhere; white-space: pre-wrap; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.72rem; line-height: 1.75; }
.muted { color: var(--muted); }
.site-footer { border-top: 1px solid var(--line); background: #f3f0e7; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; padding-block: 30px; }
.footer-inner > div { flex: 1 1 240px; color: var(--muted); font-size: 0.8rem; }
.footer-inner > div strong { color: var(--ink); }
.footer-inner nav { display: flex; flex: 1 1 360px; flex-wrap: wrap; justify-content: flex-end; align-content: start; gap: 0 18px; max-width: 520px; }
.footer-inner nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); font-size: 0.75rem; text-decoration: none; }
.footer-inner nav a:hover { color: var(--green); text-decoration: underline; }
.footer-note { flex-basis: 100%; max-width: none; margin-top: 0; color: var(--muted); font-size: 0.75rem; line-height: 1.6; }

@media (min-width: 1400px) {
  .hero { padding-top: 90px; }
}
@media (max-width: 1000px) {
  .header-inner { gap: 16px; }
  .wordmark { width: 155px; }
  .main-nav { gap: 0; }
  .main-nav a { padding-inline: 8px; font-size: 0.8rem; }
  .language-nav { padding-left: 10px; }
  .hero { gap: 36px; }
  .hero-art { padding: 27px; }
  .legal-layout { grid-template-columns: 190px minmax(0, 1fr); gap: 24px; }
  .legal-content { padding: 34px 30px; }
}
@media (max-width: 760px) {
  .container, .header-inner, .footer-inner { width: calc(100% - 40px); }
  .header-inner { flex-wrap: wrap; min-height: auto; padding-block: 16px 10px; gap: 12px; }
  .brand { margin-right: auto; }
  .wordmark { width: 155px; }
  .language-nav { order: 1; padding-left: 0; border-left: 0; }
  .language-picker { order: 1; max-width: 175px; }
  .main-nav { order: 2; flex: 0 0 100%; margin: 0; gap: 4px; }
  .main-nav a { padding-inline: 12px; font-size: 0.8rem; }
  .hero { grid-template-columns: minmax(0, 1fr) 200px; gap: 20px; padding-block: 50px 36px; }
  .hero h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); }
  .hero .lede { font-size: 1rem; }
  .hero-art { padding: 18px; }
  .button-row { gap: 10px; margin-top: 24px; }
  .button { padding-inline: 16px; font-size: 0.85rem; }
  .quick-facts { margin-bottom: 44px; gap: 8px; }
  .quick-facts > span { padding-inline: 10px; font-size: 0.7rem; }
  .section-heading { display: block; margin-bottom: 22px; }
  .section-heading p { margin-top: 12px; max-width: 60ch; }
  .doc-card { min-height: 230px; padding: 24px; }
  .doc-card h3 { font-size: 1.3rem; }
  .support-grid { grid-template-columns: 1fr; gap: 36px; margin-top: 44px; }
  .contact-card { padding: 28px; }
  .page-home main { padding-bottom: 48px; }
  .legal-layout { display: block; padding-block: 24px 48px; }
  .toc { position: static; margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
  .toc .desktop-toc { display: none; }
  .toc .mobile-toc { display: block; margin-top: 8px; }
  .mobile-toc > summary { min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--green-dark); font-weight: 650; cursor: pointer; list-style-position: inside; }
  .mobile-toc[open] > summary { margin-bottom: 10px; }
  .toc > h2, .toc > p, .toc nav > h2, .toc nav > p { margin-top: 12px; }
  .toc ol { display: flex; flex-wrap: wrap; gap: 4px 8px; }
  .toc li { margin: 0; }
  .toc a { padding-inline: 10px; border: 1px solid var(--line); background: var(--surface); font-size: 0.75rem; }
  .toc .back-link { border: 0; padding-left: 0; background: transparent; }
  .legal-content { padding: 30px 26px; }
  .legal-heading h1 { font-size: 2.4rem; }
  .footer-inner { display: block; padding-block: 26px; }
  .footer-inner nav { justify-content: flex-start; margin-top: 16px; max-width: none; }
}
@media (max-width: 520px) {
  .wordmark { width: 135px; }
  .language-picker { max-width: min(165px, calc(100vw - 205px)); }
  .language-picker > summary { padding-inline: 9px; }
  .hero { position: relative; display: block; padding-top: 38px; }
  .hero-copy { position: relative; z-index: 1; }
  .hero h1 { max-width: 13ch; font-size: 2.85rem; }
  .hero-art { display: none; }
  .eyebrow { margin-bottom: 14px; font-size: 0.68rem; }
  .hero .lede { margin-top: 20px; }
  .card-grid { grid-template-columns: 1fr; gap: 12px; }
  .doc-card { min-height: 0; padding: 24px; }
  .card-kicker { margin-bottom: 12px; }
  .doc-card h3 { font-size: 1.4rem; }
  .card-arrow { margin-top: 0; }
  .quick-facts { gap: 7px; }
  .contact-card { padding: 24px; }
  .notice { padding: 20px; }
  .legal-content { padding: 26px 20px; border-radius: 16px; }
  .legal-heading h1 { font-size: 2.1rem; }
  .legal-content h2 { font-size: 1.3rem; }
  .meta { display: block; }
  .meta > * { display: block; }
  .callout { padding: 17px; }
  th, td { padding: 12px; }
}
/* Keep mixed-script identifiers readable while letting Arabic, Urdu and Hebrew flow naturally. */
html[dir="rtl"] .main-nav { margin-left: 0; margin-inline-start: auto; }
html[dir="rtl"] ul, html[dir="rtl"] ol { padding-left: 0; padding-inline-start: 1.4rem; }
html[dir="rtl"] .toc ol { padding-inline-start: 0; }
html[dir="rtl"] .brand { margin-right: 0; }
html[dir="rtl"] .contact-email, html[dir="rtl"] a[href^="mailto:"] { unicode-bidi: isolate; }
html[dir="rtl"] .eyebrow, html[dir="rtl"] .card-kicker { letter-spacing: normal; }
html[dir="rtl"] .hero h1 { max-width: 16ch; }
html[lang="ar"] body, html[lang="ur"] body { line-height: 1.95; }
html[lang="ja"] h1, html[lang="ja"] h2, html[lang^="zh"] h1, html[lang^="zh"] h2,
html[lang="ko"] h1, html[lang="ko"] h2, html[lang="th"] h1, html[lang="th"] h2,
html[lang="hi"] h1, html[lang="hi"] h2, html[lang="bn"] h1, html[lang="bn"] h2,
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ur"] h1, html[lang="ur"] h2 {
  line-height: 1.4; letter-spacing: normal;
}
html[lang="ko"] .legal-content { word-break: keep-all; overflow-wrap: anywhere; }
@media (max-width: 760px) {
  html[dir="rtl"] .brand { margin-inline-end: auto; }
  html[dir="rtl"] .main-nav { margin-inline-start: 0; }
}
@media (max-width: 520px) {
  html[lang="ru"] .legal-heading h1, html[lang="uk"] .legal-heading h1 { font-size: clamp(1.4rem, 7vw, 2rem); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
@media print {
  :root { --ink: #000; --muted: #333; --paper: #fff; --surface: #fff; --line: #ccc; }
  body { font-size: 10pt; line-height: 1.5; background: white; }
  .container, .header-inner, .footer-inner { width: 100%; }
  .site-header, .site-footer, .skip-link, .toc, .hero-art, .button-row, .card-arrow { display: none !important; }
  .legal-layout { display: block; padding: 0; }
  .legal-content { padding: 0; border: 0; border-radius: 0; }
  .legal-heading { padding-bottom: 18pt; margin-bottom: 20pt; }
  .legal-heading h1, .hero h1 { max-width: none; font-size: 27pt; }
  .legal-content h2, .section-heading h2 { font-size: 16pt; break-after: avoid; }
  .legal-content h3 { break-after: avoid; }
  .legal-content p, .legal-content li { font-size: 10pt; }
  .legal-content section + section { margin-top: 20pt; padding-top: 16pt; }
  .callout, .notice, .doc-card, .contact-card { background: white; box-shadow: none; }
  a { color: #000; }
  p, li { orphans: 3; widows: 3; }
  .table-wrap { overflow: visible; }
  table { font-size: 9pt; }
  th { background: #eee; }
  tr { break-inside: avoid; }
  .license-block { break-inside: avoid; }
  .license-block pre { display: block !important; font-size: 8pt; }
  .hero { display: block; padding: 0 0 24pt; }
  .quick-facts { margin-bottom: 20pt; }
  .card-grid, .support-grid { display: block; }
  .doc-card, .contact-card, .faq { margin-block: 12pt; }
  .faq-item > div { display: block !important; }
}
