:root {
  color-scheme: light;
  --green: #4cd080;
  --green-dark: #008252;
  --navbar: #00cc81;
  --blue: #05aff2;
  --text: #212121;
  --muted: #6a6a6a;
  --line: #e2e8f0;
  --page: #f8fafc;
  --footer: #1e293b;
  color: var(--text);
  background: var(--page);
  font-family: Arial, Helvetica, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 146px; }
body { margin: 0; min-width: 0; }
button, input { font: inherit; }
img { display: block; max-width: 100%; }
svg { flex-shrink: 0; }
a { color: var(--green-dark); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid #075b97; outline-offset: 4px; }
.site-header :focus-visible, .footer-modern :focus-visible { outline-color: #fff; box-shadow: 0 0 0 6px #075b97; }
.skip-link { position: absolute; z-index: 10; top: -80px; left: 12px; padding: 12px 16px; background: #fff; font-weight: 700; }
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Header appearance comes from generated header.css, not a second design. */
[hidden] { display: none !important; }
.site-header a { color: inherit; text-decoration: none; }
.site-header a.option-button { padding: 2px 6px; }
.site-header a.category-trigger { padding: 10px 0; }
.site-header a.top-button { padding: 0; }
.site-header button { cursor: pointer; }
.site-header input { background: #fff; }
.site-header input:focus-visible { outline: 2px solid #075b97; outline-offset: 2px; }
/* Keep the same translucent bands over a white canvas as other site pages. */
body { background: #fff; }
.legal-layout { background: var(--page); }

/* The legal document follows the existing InfoPage card, not a new landing page. */
.legal-layout { display: grid; grid-template-columns: 220px minmax(0, 740px); justify-content: center; align-items: start; gap: 32px; max-width: 1280px; min-height: calc(100vh - 350px); margin: 0 auto; padding: 60px 24px; }
.legal-sidebar { position: sticky; top: 146px; min-width: 0; max-height: calc(100vh - 170px); padding-right: 10px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.legal-index { padding: 4px 0 20px; }
.legal-index h2 { margin: 0 0 14px; color: #0f172a; font-size: 16px; font-weight: 700; }
.legal-index ol, .legal-mobile-index ol { display: flex; flex-direction: column; gap: 0; list-style: none; margin: 0; padding: 0; }
.legal-index a { display: block; padding: 8px 0; color: #475569; font-size: 14px; line-height: 1.5; text-decoration: none; overflow-wrap: anywhere; }
.legal-index a:hover, .legal-related a:hover { color: var(--green-dark); text-decoration: underline; }
.legal-related { display: flex; flex-direction: column; gap: 4px; padding-top: 16px; border-top: 1px solid var(--line); }
.legal-related a { padding: 8px 0; color: #475569; font-size: 13px; line-height: 1.5; text-decoration: none; }
.legal-main-column { min-width: 0; }
.legal-mobile-index { display: none; }
.info-page-card { width: 100%; max-width: 740px; padding: 40px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 10px 25px rgb(0 0 0 / 5%); }
.info-page-title { margin: 0 0 28px; padding-bottom: 16px; border-bottom: 3px solid var(--green); color: #0f172a; font-size: 32px; font-weight: 800; line-height: 1.25; }
.info-page-content { color: #334155; font-size: 16px; line-height: 1.8; overflow-wrap: anywhere; }
.info-page-content section + section { margin-top: 32px; }
.info-page-content h2 { margin: 0 0 14px; color: #0f172a; font-size: 21px; font-weight: 700; line-height: 1.4; }
.info-page-content h3 { margin: 24px 0 10px; color: #0f172a; font-size: 17px; line-height: 1.5; }
.info-page-content p { margin: 0 0 18px; }
.info-page-content ul, .info-page-content ol { margin: 0 0 18px; padding-left: 24px; }
.info-page-content li + li { margin-top: 10px; }
.info-page-content li p { margin-top: 8px; }
.info-page-content p:last-child, .info-page-content ul:last-child, .info-page-content ol:last-child { margin-bottom: 0; }
.info-page-content strong { font-weight: 700; }
.info-page-content address { margin: 12px 0 18px; font-style: normal; }
.info-page-content .updated, .info-page-content .document-date, .info-page-content .legal-updated { margin-bottom: 18px; color: #64748b; font-size: 14px; }
.info-page-content .notice { margin: 20px 0; padding: 16px 18px; border-left: 3px solid var(--green-dark); border-radius: 0 8px 8px 0; background: #f0fdf4; }
.info-page-content .email-card { margin: 20px 0; padding: 18px; border: 1px solid #c8e7d6; border-radius: 8px; background: #f0fdf4; }
.info-page-content .email { font-weight: 700; }
.info-page-content table { width: 100%; margin: 20px 0; border-collapse: collapse; font-size: 14px; }
.info-page-content th, .info-page-content td { padding: 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.info-page-content th { color: #0f172a; background: var(--page); }

/* Existing Topmai footer groups, assets and store destinations. */
.footer-modern { padding: 60px 0 24px; border-top: 1px solid #334155; background: var(--footer); color: #f8fafc; }
.footer-modern-container { width: 100%; margin: 0 auto; padding: 0 4%; }
.footer-modern-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 48px; margin-bottom: 48px; }
.footer-brand-col { flex: 1; min-width: 210px; max-width: 300px; }
.footer-modern-logo { width: 123px; height: 36px; margin-bottom: 16px; object-fit: contain; filter: brightness(0) invert(1); }
.footer-modern-tagline { margin: 0 0 24px; color: #a8b7ca; font-size: 14px; line-height: 1.6; }
.footer-social-modern { display: flex; gap: 16px; }
.footer-social-modern a { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: rgb(255 255 255 / 5%); }
.footer-social-modern a:hover { background: var(--green-dark); }
.footer-social-modern img { width: 20px; height: 20px; object-fit: contain; filter: brightness(0) invert(1); }
.footer-links-grid { display: flex; flex: 2; flex-wrap: wrap; gap: 36px; min-width: 390px; }
.footer-col { flex: 1; min-width: 120px; }
.footer-col h2, .footer-app-col h2 { margin: 0 0 20px; color: #fff; font-size: 16px; font-weight: 600; letter-spacing: .5px; line-height: 1.4; text-transform: uppercase; }
.footer-col ul { display: flex; flex-direction: column; gap: 6px; list-style: none; margin: 0; padding: 0; }
.footer-col li a { display: inline-block; padding: 5px 0; color: #cbd5e1; font-size: 14px; line-height: 1.6; text-decoration: none; }
.footer-col li a:hover { color: var(--green); text-decoration: underline; }
.footer-app-col { flex: 1; min-width: 260px; }
.footer-app-wrapper { display: inline-flex; flex-direction: column; align-items: center; }
.footer-app-wrapper h2 { text-align: center; }
.footer-app-download { display: flex; align-items: center; gap: 16px; width: max-content; max-width: 100%; padding: 16px; border: 1px solid rgb(255 255 255 / 5%); border-radius: 12px; background: rgb(255 255 255 / 3%); }
.footer-qr { flex-shrink: 0; width: 80px; height: 80px; padding: 4px; border-radius: 8px; background: #fff; }
.footer-app-badges { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
.footer-app-badges a { display: flex; align-items: center; justify-content: center; width: 135px; min-height: 44px; border-radius: 6px; }
.play-badge-img { width: 135px; height: 40px; object-fit: contain; }
.app-badge-img { width: 120px; height: 40px; object-fit: contain; }
.footer-modern-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 24px; border-top: 1px solid rgb(255 255 255 / 10%); }
.footer-modern-bottom p { margin: 0; color: #a8b7ca; font-size: 14px; line-height: 1.6; }
.footer-legal-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.footer-legal-links a { padding: 8px 0; color: #cbd5e1; font-size: 13px; line-height: 1.5; text-decoration: none; }
.footer-legal-links a:hover { color: #fff; text-decoration: underline; }
.divider { color: #94a3b8; font-size: 12px; }

@media (max-width: 1100px) {
  .legal-layout { grid-template-columns: 190px minmax(0, 740px); gap: 24px; padding-inline: 20px; }
  .info-page-card { padding: 32px; }
  .footer-links-grid { min-width: 340px; }
}

@media (max-width: 820px) {
  .legal-layout { display: block; padding: 30px 16px; }
  .legal-sidebar { display: none; }
  .legal-main-column { max-width: 740px; margin: 0 auto; }
  .legal-mobile-index { display: block; margin: 0 0 16px; padding: 0 20px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
  .legal-mobile-index summary { padding: 14px 0; color: #0f172a; font-size: 15px; font-weight: 700; cursor: pointer; }
  .legal-mobile-index nav { padding: 0 0 16px; }
  .legal-mobile-index a { display: block; padding: 7px 0; color: #475569; font-size: 14px; line-height: 1.5; }
  .footer-modern-top { gap: 36px; }
  .footer-brand-col { max-width: none; }
  .footer-links-grid { min-width: 100%; gap: 28px; }
  .footer-app-col { min-width: 0; }
}

@media (max-width: 480px) {
  .legal-layout { padding: 24px 12px; }
  .info-page-card { padding: 24px 20px; }
  .info-page-content { font-size: 16px; }
  .info-page-content h2 { font-size: 20px; }
  .footer-modern { padding-top: 40px; }
  .footer-modern-container { padding-inline: 20px; }
  .footer-modern-top { margin-bottom: 32px; }
  .footer-brand-col { min-width: 0; flex-basis: 100%; }
  .footer-links-grid { gap: 28px 20px; }
  .footer-col { min-width: 110px; }
  .footer-app-col { flex-basis: 100%; }
  .footer-app-wrapper { align-items: flex-start; }
  .footer-app-wrapper h2 { text-align: left; }
  .footer-app-download { gap: 12px; padding: 12px; }
  .footer-qr { width: 72px; height: 72px; }
}

@media (max-width: 768px) {
  html { scroll-padding-top: 207px; }
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
}

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

@media print {
  :root { color: #000; background: #fff; }
  .skip-link, #legal-header-fallback, #legal-header-enhancement, .legal-sidebar, .legal-mobile-index, .footer-modern { display: none; }
  .legal-layout { display: block; max-width: none; margin: 0; padding: 0; }
  .legal-main-column, .info-page-card { max-width: none; }
  .info-page-card { padding: 0; border: 0; border-radius: 0; box-shadow: none; }
  .info-page-content { color: #000; font-size: 10pt; line-height: 1.5; }
  .info-page-title { font-size: 24pt; }
  .info-page-content h2 { break-after: avoid; font-size: 14pt; }
  .info-page-content p, .info-page-content li { orphans: 3; widows: 3; }
  a { color: #000; }
}
