/* Shared MoR / legal document chrome — follows QUIBRAS data-theme, not OS. */
:root,
html[data-theme='light'] {
  --mor-bg: #f5f5f7;
  --mor-card: #ffffff;
  --mor-ink: #1d1d1f;
  --mor-muted: #6e6e73;
  --mor-border: rgba(0, 0, 0, 0.08);
  --mor-link: #0066cc;
  --mor-accent: #0071e3;
  --mor-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  color-scheme: light;
}

html[data-theme='dark'] {
  --mor-bg: #000000;
  --mor-card: #1c1c1e;
  --mor-ink: #f5f5f7;
  --mor-muted: #98989d;
  --mor-border: rgba(255, 255, 255, 0.12);
  --mor-link: #0a84ff;
  --mor-accent: #0a84ff;
  --mor-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html.mor-doc,
html.mor-doc body {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: none;
  min-height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-x: none;
  overscroll-behavior-y: auto;
  touch-action: pan-y;
}

html.mor-doc body,
body.mor-doc {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Helvetica, Arial, sans-serif;
  background: var(--mor-bg);
  color: var(--mor-ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

html.mor-doc #app {
  display: block;
  height: auto;
  max-height: none;
  min-height: 100dvh;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  background: var(--mor-bg);
  color: var(--mor-ink);
}

/* Hide static English MoR HTML until the localized paint finishes. */
html.mor-doc.legal-hydrating #app {
  opacity: 0;
}

html.mor-doc.legal-ready #app {
  opacity: 1;
}

.mor-main {
  box-sizing: border-box;
  width: 100%;
  max-width: min(720px, 100%);
  margin: 0 auto;
  padding: 32px 20px 64px;
  overflow-x: hidden;
}

.mor-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin: 0 0 28px;
  text-align: center;
}

a.brand {
  display: block;
  width: 100%;
  text-align: center;
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 34px;
  margin: 0 0 16px;
  color: #000000;
  text-decoration: none;
}

html[data-theme='dark'] a.brand {
  color: #ffffff;
}

a.brand:hover {
  opacity: 0.72;
  color: #000000;
}

html[data-theme='dark'] a.brand:hover {
  color: #ffffff;
}

nav.policy-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 100%;
  gap: 6px 0.35em;
  margin: 0;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--mor-border);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  white-space: normal;
  overflow: hidden;
}

nav.policy-nav::-webkit-scrollbar {
  display: none;
}

nav.policy-nav a {
  color: var(--mor-link);
  text-decoration: none;
  flex: 0 0 auto;
  white-space: nowrap;
}

nav.policy-nav a:hover {
  text-decoration: underline;
}

nav.policy-nav a[aria-current='page'] {
  color: var(--mor-ink);
  font-weight: 600;
  text-decoration: none;
  pointer-events: none;
}

nav.policy-nav .sep {
  color: var(--mor-muted);
}

.mor-main h1 {
  font-size: 1.85rem;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
  color: var(--mor-ink);
}

.mor-main h2 {
  font-size: 1.05rem;
  margin: 22px 0 8px;
  color: var(--mor-ink);
}

.mor-main .lead,
.mor-main .note,
.mor-main p,
.mor-main li {
  color: var(--mor-muted);
}

.mor-main strong {
  color: var(--mor-ink);
}

.mor-main a {
  color: var(--mor-link);
}

.mor-card {
  background: var(--mor-card);
  border: 1px solid var(--mor-border);
  border-radius: 16px;
  padding: 20px 22px;
  margin: 0 0 14px;
  box-shadow: var(--mor-shadow);
}

.mor-card h2 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.mor-price {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--mor-ink);
}

.mor-price span {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--mor-muted);
}

.mor-main ul {
  margin: 8px 0 0;
  padding-left: 1.2rem;
}

.mor-footer {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--mor-border);
  font-size: 0.9rem;
  color: var(--mor-muted);
  line-height: 1.6;
}

.mor-footer strong {
  color: var(--mor-ink);
  font-weight: 600;
}

.mor-footer a {
  color: var(--mor-link);
}

/* SPA article content inside MoR chrome */
.mor-main .legal-article h1 {
  font-size: 1.85rem;
  font-weight: 700;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}

.mor-main .legal-intro,
.mor-main .legal-outro,
.mor-main .faq-item p {
  font-size: 1rem;
  line-height: 1.55;
  color: var(--mor-muted);
  margin-bottom: 16px;
}

.mor-main .legal-section {
  margin-bottom: 22px;
}

.mor-main .legal-section h2,
.mor-main .faq-item h2 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--mor-ink);
}

.mor-main .legal-section ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mor-main .legal-section li {
  font-size: 1rem;
  line-height: 1.55;
}

.mor-main .legal-cta {
  margin-top: 28px;
  text-align: center;
}

.mor-main .legal-cta-link {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 12px;
  background: var(--mor-accent);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.mor-main .legal-cta-link:hover {
  filter: brightness(1.06);
}

/* Same mark as START. These pages only load mor.css, so the size has to live here.
   Without it the PNG uses its file size (1525×360) and fills the window. */
a.brand .start-wordmark,
a.brand .start-wordmark-html {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(420px, 88vw);
  max-width: min(420px, 88vw);
  height: min(72px, 11dvh);
  max-height: min(72px, 11dvh);
  margin: 0 auto;
  min-width: 0;
  line-height: 0;
  overflow: hidden;
}

a.brand .start-blink-wrap {
  position: relative;
  height: 100%;
  aspect-ratio: 1525 / 360;
  width: auto;
  max-width: 100%;
  min-width: 0;
}

a.brand img.start-blink-base {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

a.brand .start-blink-mask {
  position: absolute;
  left: 8.25%;
  top: 40.5%;
  width: 7.65%;
  height: 17%;
  background: #0d0c14;
  border-radius: 18px;
}

a.brand .start-blink-eye {
  position: absolute;
  top: 42.45%;
  width: 2.56%;
  height: 12.9%;
  background: #fff;
  border-radius: 50%;
  transform-origin: center center;
}

a.brand .start-blink-eye.left { left: 8.53%; }
a.brand .start-blink-eye.right { left: 12.93%; }

a.brand .start-blink-eye.right.blink {
  animation: start-blink-eye 220ms ease-in-out;
}

@media (max-width: 768px) {
  a.brand .start-wordmark,
  a.brand .start-wordmark-html {
    width: min(340px, 86vw);
    max-width: min(340px, 86vw);
    height: min(58px, 9dvh);
    max-height: min(58px, 9dvh);
  }
}

@media (prefers-reduced-motion: reduce) {
  a.brand .start-blink-eye.right.blink {
    animation: none;
  }
}
