/* ============================================================
   Yalla Landing — Stylesheet
   Clean, hand-written CSS. No Tailwind dependency.
   ============================================================ */

/* ----- Reset ----- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ----- Design Tokens (CSS Variables) ----- */
:root {
  /* Colors — light theme (default) */
  --c-bg:          #ffffff;
  --c-surface:     #ffffff;
  --c-muted:       #f6f7fa;
  --c-text:        #202124;
  --c-text-muted:  #555a65;
  --c-border:      #d7dae2;
  --c-icon:        #202124;
  --c-brand:       #153359;
  --c-header-bg:   rgba(255, 255, 255, 0.95);
  --c-hover:       #e8e9ec;
  --c-border-hover:#c5c8ce;
  --c-accent:      #FF6700;

  /* Submit button half-opacity brand */
  --c-submit:      var(--c-brand);

  /* Toast */
  --c-success-bg:  rgba(34, 197, 94, 0.15);
  --c-success:     #4ade80;
  --c-error-bg:    rgba(239, 68, 68, 0.15);
  --c-error:       #f87171;

  /* Typography */
  --font-body:     'Geologica', sans-serif;
  --font-brand:    'Inter', sans-serif;
  --fvs:           'CRSV' 0, 'SHRP' 0;   /* font-variation-settings shorthand */

  /* Spacing scale */
  --sp-4:   4px;
  --sp-8:   8px;
  --sp-10:  10px;
  --sp-12:  12px;
  --sp-16:  16px;
  --sp-20:  20px;
  --sp-24:  24px;
  --sp-32:  32px;
  --sp-52:  52px;

  /* Radii */
  --r-sm:   8px;
  --r-md:   12px;
  --r-lg:   16px;
  --r-xl:   20px;
  --r-2xl:  24px;
  --r-3xl:  32px;

  color-scheme: light;
}

/* ----- Dark Theme ----- */
html[data-theme="dark"] {
  --c-bg:          #0a0a0a;
  --c-surface:     #0f0f0f;
  --c-muted:       #1a1a1a;
  --c-text:        #f6f7fa;
  --c-text-muted:  #a1a5ae;
  --c-border:      #2a2a2a;
  --c-icon:        #f6f7fa;
  --c-brand:       #e0e0e0;
  --c-header-bg:   rgba(10, 10, 10, 0.95);
  --c-hover:       #2a2a2a;
  --c-border-hover:#3a3a3a;
  --c-submit:      rgba(255, 103, 1);

  color-scheme: dark;
}

html {
  scroll-behavior: smooth;
}

/* ----- Base ----- */
html, body {
  font-family: var(--font-body);
  font-variation-settings: var(--fvs);
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  line-height: 1.5;
}

body {
  background: var(--c-bg);
  color: var(--c-text);
  min-height: 100vh;
}

.nowrap { white-space: nowrap; }
img { display: block; max-width: 100%; }
a   { color: inherit; text-decoration: none; }
button { font: inherit; border: none; background: none; cursor: pointer; }
input  { font: inherit; border: none; outline: none; background: transparent; }

/* ----- Page Layout ----- */
.page {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  background: var(--c-surface);
  width: 100%;
}

/* ----- Header ----- */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--sp-32) var(--sp-24);
}

.brand {
  display: flex;
  align-items: center;
  border-radius: var(--r-xl);
}

.brand__logo {
  width: 44px;
  height: 44px;
  object-fit: cover;
}

.brand__name {
  font-family: var(--font-brand);
  font-weight: 900;
  font-size: 20px;
  letter-spacing: -0.8px;
  color: var(--c-brand);
  line-height: normal;
}

.burger {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-10);
  background: var(--c-muted);
  border-radius: var(--r-sm);
  transition: all 0.2s ease;
  user-select: none;
}

.burger:hover {
  opacity: 0.7;
  transform: scale(1.05);
}

.burger:active {
  transform: scale(0.95);
}

.burger:hover path {
  stroke: var(--c-accent) !important;
}

.burger__icon {
  width: 24px;
  height: 24px;
  display: block;
}

/* Header nav — hidden on mobile, shown on tablet */
.header__nav {
  display: none;
}

.header__nav-link {
  font-weight: 400;
  font-size: 16px;
  color: var(--c-text);
  transition: color 0.2s ease;
  font-variation-settings: var(--fvs);
  white-space: nowrap;
}

.header__nav-link:hover {
  color: var(--c-accent);
}

/* ----- Hero ----- */
.hero {
  width: 100%;
  padding: var(--sp-32) var(--sp-24);
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-24);
  overflow: hidden;
  width: 100%;
}

.hero__text {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: var(--sp-24);
  align-items: center;
  width: 100%;
}

.hero__title {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 28px;
  line-height: 34px;
  color: var(--c-text);
  font-variation-settings: var(--fvs);
  white-space: nowrap;
}

.hero__title-br { display: none; }

.hero__title p { margin: 0; }

.hero__title h1 {
  font-size: inherit;
  font-weight: inherit;
}

.hero__subtitle {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 17px;
  line-height: 22px;
  color: var(--c-text-muted);
  font-variation-settings: var(--fvs);
  width: 292px;
  white-space: pre-wrap;
}

/* ----- Store Buttons ----- */
.store-buttons {
  display: flex;
  gap: var(--sp-12);
  width: 100%;
}

.store-link {
  flex: 1 0 0;
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-8) var(--sp-12);
  background: var(--c-muted);
  border-radius: var(--r-lg);
  transition: transform 0.15s ease;
}

.store-link:active,
.store-link:hover {
  transform: scale(0.95);
}

.store-link__icon {
  flex-shrink: 0;
}

.store-link__icon--apple {
  width: 32px;
  height: 37px;
}

.store-link__icon--play {
  width: 24px;
  height: 27px;
  padding: var(--sp-4);
}

.store-link__label {
  text-align: start;
  color: var(--c-text);
}

.store-link__small {
  font-weight: 300;
  font-size: 12px;
  line-height: 16px;
  font-variation-settings: var(--fvs);
}

.store-link__name {
  font-weight: 500;
  font-size: 15px;
  line-height: 20px;
  font-variation-settings: var(--fvs);
}

/* ----- Mockup ----- */
.mockup {
  /*width: 100%;*/
  /*max-width: 400px;*/
  height: 360px;
  overflow: hidden;
}

.mockup__img {
  width: 100%;
  height: 100%;
  display: block;
}

/* ----- CTA Section ----- */
.cta {
  width: 100%;
  padding: var(--sp-32) 0;
  overflow: hidden;
}

.cta__inner {
  background: var(--c-muted);
  border-radius: var(--r-3xl);
  width: 100%;
  padding: var(--sp-52) var(--sp-24);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-32);
}

.cta__text {
  display: flex;
  flex-direction: column;
  gap: var(--sp-32);
  align-items: center;
  text-align: center;
  width: 100%;
  white-space: pre-wrap;
}

.cta__title {
  font-weight: 500;
  font-size: 22px;
  line-height: 28px;
  color: var(--c-text);
  text-align: center;
  font-variation-settings: var(--fvs);
  width: 100%;
  /*max-width: 780px;*/
}

.cta__subtitle {
  font-weight: 300;
  font-size: 17px;
  line-height: 22px;
  color: var(--c-text-muted);
  text-align: center;
  font-variation-settings: var(--fvs);
  white-space: pre-wrap;
  width: 100%;
}

/* ----- Form ----- */
.form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-32);
  width: 100%;
}

.form__fields {
  display: flex;
  flex-direction: column;
  gap: var(--sp-20);
  width: 100%;
}

.form__input-wrap {
  background: var(--c-surface);
  border-radius: var(--r-md);
  height: 45px;
  overflow: hidden;
}

.form__input-wrap--row {
  display: flex;
  gap: var(--sp-8);
  background: transparent;
  height: auto;
  overflow: visible;
}

.form-input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 21px;
  color: var(--c-text);
  font-variation-settings: var(--fvs);
  padding: var(--sp-12) var(--sp-16);
}

.form-input::placeholder {
  color: #999ead;
}

.contact-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-10);
  background: var(--c-surface);
  border-radius: var(--r-sm);
  flex-shrink: 0;
  transition: background-color 0.2s ease;
}

.contact-toggle:hover {
  background-color: var(--c-hover);
}

.contact-toggle__icon {
  width: 24px;
  height: 24px;
  display: block;
}

.contact-input-wrap {
  flex: 1;
  background: var(--c-surface);
  border-radius: var(--r-md);
  overflow: hidden;
}

/* ----- Submit Button ----- */
.submit-btn {
  width: 100%;
  background: var(--c-submit);
  border-radius: var(--r-sm);
  border: none;
  outline: none;
  cursor: pointer;
  padding: 14px var(--sp-32);
  transition: opacity 0.2s ease, transform 0.1s ease;
}

.submit-btn__text {
  font-weight: 500;
  font-size: 16px;
  line-height: 21px;
  color: #ffffff;
  text-align: center;
  font-variation-settings: var(--fvs);
}

.submit-btn:hover {
  opacity: 0.9;
}

.submit-btn:active {
  transform: scale(0.98);
}

.submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* ----- Toast ----- */
.form-toast {
  padding: var(--sp-10) var(--sp-16);
  border-radius: var(--r-sm);
  font-weight: 300;
  font-size: 14px;
  line-height: 20px;
  text-align: center;
  font-variation-settings: var(--fvs);
  animation: fade-in 0.3s ease-out;
}

.form-toast.success {
  background-color: var(--c-success-bg);
  color: var(--c-success);
}

.form-toast.error {
  background-color: var(--c-error-bg);
  color: var(--c-error);
}

/* ----- Footer ----- */
.footer {
  width: 100%;
  border-top: 1px solid var(--c-border);
  padding: var(--sp-32) var(--sp-24);
  display: flex;
  flex-direction: column;
  gap: var(--sp-52);
}

.footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

/* ----- Socials ----- */
.socials {
  display: flex;
  gap: var(--sp-8);
  align-items: center;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-8);
  background: var(--c-surface);
  border-radius: var(--r-sm);
}

.social-link__icon {
  width: 24px;
  height: 24px;
  display: block;
}

.social-link--whatsapp {
  width: 40px;
  height: 40px;
  padding: 0;
}

.social-link--whatsapp svg {
  width: 100%;
  height: 100%;
}

/* ----- Footer Bottom ----- */
.footer__bottom {
  display: flex;
  flex-direction: column;
  gap: var(--sp-16);
  font-weight: 300;
}

.footer__legal-link {
  font-size: 16px;
  line-height: 21px;
  color: var(--c-text);
  cursor: pointer;
  user-select: none;
  transition: color 0.2s ease;
}

.footer__legal-link:hover {
  color: var(--c-accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer__theme-row {
  display: flex;
  align-items: center;
}

/* Temporarily hide theme toggle */

.footer__theme-row {
  display: none;
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-surface);
  border-radius: var(--r-sm);
  padding: 0;
  transition: transform 0.2s ease;
}

.theme-toggle:hover {
  transform: scale(0.98);
}

.theme-toggle__icon {
  width: 24px;
  height: 24px;
  display: block;
}

.footer__copyright {
  font-size: 14px;
  line-height: 20px;
  color: var(--c-text-muted);
  text-align: left;
  font-variation-settings: var(--fvs);
}

/* ----- SVG icon color inheritance ----- */
.burger,
.contact-toggle,
.theme-toggle {
  --stroke-0: var(--c-icon);
  --fill-0: var(--c-icon);
}

.social-link {
  --white: var(--c-surface);
}

/* ============================================================
   Legal Pages
   ============================================================ */

/* ----- Legal Page Layout ----- */
.legal-page {
  min-height: 100vh;
  background: var(--c-bg);
  color: var(--c-text);
}

.legal-page--animated {
  animation: fade-in 0.3s ease-out;
}

/* ----- Legal Header ----- */
.legal-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--c-header-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--c-border);
}

.legal-header__inner {
  display: flex;
  align-items: center;
  gap: var(--sp-16);
  padding: var(--sp-16) var(--sp-24);
}

.legal-header__back {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  background: var(--c-muted);
  transition: all 0.2s ease;
  color: var(--c-text);
}

.legal-header__back:hover {
  background: var(--c-hover);
}

.legal-header__back:active {
  transform: scale(0.95);
}

.legal-header__back svg {
  width: 20px;
  height: 20px;
}

.legal-header__title {
  font-weight: 500;
  font-size: 20px;
  line-height: 1.4;
  font-variation-settings: var(--fvs);
}

/* ----- Legal Content ----- */
.legal-content {
  padding: var(--sp-32) var(--sp-24);
  max-width: 672px;   /* max-w-2xl equivalent */
  margin: 0 auto;
}

.legal-content__intro {
  font-weight: 300;
  font-size: 16px;
  line-height: 1.625;
  color: var(--c-text-muted);
  margin-bottom: var(--sp-32);
  font-variation-settings: var(--fvs);
}

/* ----- Legal Cards ----- */
.legal-cards {
  display: flex;
  flex-direction: column;
  gap: var(--sp-16);
}

.legal-card {
  display: block;
  background: var(--c-muted);
  border-radius: var(--r-lg);
  padding: var(--sp-24);
  border: 1px solid var(--c-border);
  transition: transform 0.15s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.legal-card:hover {
  background: var(--c-hover);
  border-color: var(--c-border-hover);
}

.legal-card:active {
  transform: scale(0.97);
}

.legal-card__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-16);
}

.legal-card__body {
  flex: 1;
}

.legal-card__title {
  font-weight: 500;
  font-size: 18px;
  line-height: 1.4;
  margin-bottom: var(--sp-8);
  font-variation-settings: var(--fvs);
  transition: color 0.2s ease;
}

.legal-card:hover .legal-card__title {
  color: var(--c-accent);
}

.legal-card__desc {
  font-weight: 300;
  font-size: 14px;
  line-height: 1.625;
  color: var(--c-text-muted);
  font-variation-settings: var(--fvs);
}

.legal-card__arrow {
  width: 20px;
  height: 20px;
  color: var(--c-text-muted);
  flex-shrink: 0;
  margin-top: 4px;
  transition: all 0.2s ease;
}

.legal-card:hover .legal-card__arrow {
  color: var(--c-accent);
  transform: translateX(4px);
}

/* ----- Legal Document (single) ----- */
.legal-document {
  background: var(--c-muted);
  border-radius: var(--r-lg);
  padding: var(--sp-32);
  border: 1px solid var(--c-border);
}

.legal-document__text {
  font-weight: 300;
  font-size: 16px;
  line-height: 1.625;
  color: var(--c-text-muted);
  font-variation-settings: var(--fvs);
}

/* ----- Legal Document Rich Content ----- */
.legal-document__meta {
  font-weight: 300;
  font-size: 14px;
  line-height: 1.5;
  color: var(--c-text-muted);
  margin-bottom: var(--sp-24);
  font-variation-settings: var(--fvs);
}

.legal-document h2 {
  font-weight: 500;
  font-size: 18px;
  line-height: 1.4;
  color: var(--c-text);
  margin-top: var(--sp-32);
  margin-bottom: var(--sp-12);
  font-variation-settings: var(--fvs);
}

.legal-document h3 {
  font-weight: 500;
  font-size: 16px;
  line-height: 1.4;
  color: var(--c-text);
  margin-top: var(--sp-24);
  margin-bottom: var(--sp-8);
  font-variation-settings: var(--fvs);
}

.legal-document p {
  font-weight: 300;
  font-size: 15px;
  line-height: 1.7;
  color: var(--c-text-muted);
  margin-bottom: var(--sp-12);
  font-variation-settings: var(--fvs);
}

.legal-document ul,
.legal-document ol {
  font-weight: 300;
  font-size: 15px;
  line-height: 1.7;
  color: var(--c-text-muted);
  margin-bottom: var(--sp-12);
  padding-left: var(--sp-24);
  font-variation-settings: var(--fvs);
}

.legal-document li {
  margin-bottom: var(--sp-4);
}

.legal-document strong {
  font-weight: 500;
  color: var(--c-text);
}

.legal-document a {
  color: var(--c-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-document a:hover {
  opacity: 0.8;
}

.legal-document table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--sp-16);
  font-size: 14px;
}

.legal-document th,
.legal-document td {
  padding: var(--sp-10) var(--sp-12);
  border: 1px solid var(--c-border);
  text-align: left;
  font-weight: 300;
  color: var(--c-text-muted);
  font-variation-settings: var(--fvs);
}

.legal-document th {
  font-weight: 500;
  color: var(--c-text);
  background: var(--c-surface);
}

/* ----- Legal Footer ----- */
.legal-footer {
  margin-top: 48px;
  padding-top: var(--sp-32);
  border-top: 1px solid var(--c-border);
}

.legal-footer__copy {
  font-weight: 300;
  font-size: 14px;
  text-align: center;
  color: var(--c-text-muted);
  font-variation-settings: var(--fvs);
}

/* ============================================================
   Tablet Breakpoint (≥ 768px)
   ============================================================ */

@media (min-width: 768px) {

  /* — Header — */
  .header {
    background: var(--c-muted);
    border-radius: var(--r-xl);
    padding: var(--sp-12) var(--sp-32);
    margin-top: var(--sp-20);
    margin-bottom: var(--sp-20);
    width: fit-content;
    gap: 32px;
  }

  .header__nav {
    display: flex;
    align-items: center;
    gap: var(--sp-32);
  }

  .burger {
    display: none;
  }

  /* — Hero — */
  .hero {
    padding: 32px 40px;
    /*max-width: 768px;*/
    margin: 0 auto;
  }

  .hero__content {
    flex-direction: row;
    align-items: flex-start;
    gap: 24px;
  }

  .hero__text {
    text-align: left;
    align-items: flex-start;
    flex: 1 1 55%;
    min-width: 0;
    gap: var(--sp-16);
    padding-top: var(--sp-16);
  }

  .hero__title {
    font-size: 34px;
    line-height: 40px;
    white-space: normal;
  }

  .hero__title p {
    display: inline;
  }

  .hero__subtitle {
    width: auto;
    max-width: 300px;
  }

  .store-buttons {
    max-width: 320px;
  }

  .mockup {
    flex: 1 1 40%;
    max-width: none;
    height: auto;
    min-width: 0;
    overflow: visible;
  }

  .mockup__img {
    height: auto;
    width: 100%;
    object-fit: contain;
  }

  /* — CTA — */
  .cta {
    padding: 32px 40px;
  }

  .cta__inner {
    padding: var(--sp-52) 48px;
    margin: 0 auto;
    border-radius: var(--r-2xl);
  }

  .form {
    margin: 0 auto;
  }

  /* — Footer — */
  .footer {
    padding: var(--sp-32) 40px;
    /*max-width: 768px;*/
    margin: 0 auto;
    width: 100%;
  }

  .footer__bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .footer__copyright {
    text-align: right;
  }
}

@media (min-width: 900px) {
  .hero__title-br { display: inline; }
}

/* ============================================================
   Desktop Breakpoint (≥ 1440px)
   ============================================================ */

@media (min-width: 1440px) {

  /* — Hero — */
  .hero {
    /*max-width: 1200px;*/
    padding: 80px 120px;
  }

  .hero__content {
    gap: 48px;
  }

  .hero__text {
    gap: var(--sp-24);
    padding-top: 48px;
    flex: 1 1 60%;
  }

  .hero__title {
    font-size: 64px;
    line-height: 72px;
  }

  .mockup {
    flex: 1 1 35%;
  }

  .hero__subtitle {
    font-size: 19px;
    line-height: 26px;
    /*max-width: 380px;*/
  }

  .store-buttons {
    max-width: 380px;
  }

  .store-link {
    /*height: 60px;*/
    padding: var(--sp-10) var(--sp-16);
    gap: var(--sp-8);
  }

  .store-link__name {
    font-size: 16px;
  }

  /* — CTA — */
  .cta {
    padding: 80px 120px;
  }

  .cta__inner {
    /*max-width: 1000px;*/
    padding: 72px 60px;
    border-radius: var(--r-3xl);
  }

  .cta__title {
    font-size: 60px;
    line-height: 64px;
  }

  .cta__subtitle {
    font-size: 19px;
    line-height: 26px;
  }

  .form {
    max-width: 640px;
  }

  /* — Footer — */
  .footer {
    padding: 40px 120px;
    display: grid;
    grid-template-columns: 1fr 1fr 2fr 3fr auto;
    align-items: center;
    column-gap: var(--sp-24);
    row-gap: 0;
  }

  .footer__top,
  .footer__bottom {
    display: contents;
  }

  .footer .brand {
    grid-column: 1;
    grid-row: 1;
  }

  .footer__copyright {
    grid-column: 2;
    grid-row: 1;
    text-align: left;
  }

  .footer__legal-link {
    grid-column: 3;
    grid-row: 1;
  }

  .socials {
    grid-column: 5;
    grid-row: 1;
    justify-self: end;
  }
}

/* ============================================================
   Animations
   ============================================================ */

@keyframes fade-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes slide-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fade-in 0.3s ease-out;
}

.animate-slide-up {
  animation: slide-up 0.4s ease-out forwards;
}

.animate-delay-1 { animation-delay: 0.1s; opacity: 0; }
.animate-delay-2 { animation-delay: 0.2s; opacity: 0; }
.animate-delay-3 { animation-delay: 0.3s; opacity: 0; }
.animate-delay-4 { animation-delay: 0.4s; opacity: 0; }

/* ============================================================
   Legal Document Actions (Print / Plain View)
   ============================================================ */

.legal-actions {
  display: flex;
  gap: var(--sp-8);
  margin-bottom: var(--sp-24);
  flex-wrap: wrap;
}

.legal-action-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-8);
  padding: var(--sp-8) var(--sp-16);
  background: var(--c-muted);
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.4;
  color: var(--c-text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  font-variation-settings: var(--fvs);
  text-decoration: none;
}

.legal-action-btn:hover {
  background: var(--c-hover);
  border-color: var(--c-border-hover);
  color: var(--c-text);
}

.legal-action-btn:active {
  transform: scale(0.97);
}

.legal-action-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ============================================================
   Plain View Mode (no styling, clean document)
   ============================================================ */

.legal-page--plain {
  background: #fff !important;
  color: #111 !important;
}

.legal-page--plain .legal-header {
  background: #fff !important;
  backdrop-filter: none !important;
  border-bottom: 1px solid #ccc !important;
  position: static !important;
  padding: 24px 40px !important;
}

.legal-page--plain .legal-header__back,
.legal-page--plain .legal-actions {
  display: none !important;
}

.legal-page--plain .legal-header__title {
  color: #111 !important;
  font-family: "Times New Roman", "PT Serif", Georgia, serif !important;
  font-size: 26px !important;
  font-weight: 700 !important;
}

/* Expand container to full readable width */
.legal-page--plain .legal-content {
  max-width: 960px !important;
  padding: 32px 40px !important;
}

.legal-page--plain .legal-content__intro {
  font-family: "Times New Roman", "PT Serif", Georgia, serif !important;
  font-size: 17px !important;
  line-height: 1.7 !important;
  color: #333 !important;
}

.legal-page--plain .legal-document {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
}

.legal-page--plain .legal-document__meta {
  color: #444 !important;
  font-family: "Times New Roman", "PT Serif", Georgia, serif !important;
  font-size: 15px !important;
  line-height: 1.6 !important;
}

.legal-page--plain .legal-document p,
.legal-page--plain .legal-document li,
.legal-page--plain .legal-document td,
.legal-page--plain .legal-document th {
  color: #222 !important;
  font-family: "Times New Roman", "PT Serif", Georgia, serif !important;
  font-size: 17px !important;
  line-height: 1.7 !important;
}

.legal-page--plain .legal-document ul,
.legal-page--plain .legal-document ol {
  font-size: 17px !important;
  line-height: 1.7 !important;
  padding-left: 28px !important;
}

.legal-page--plain .legal-document li {
  margin-bottom: 6px !important;
}

.legal-page--plain .legal-document h2 {
  color: #000 !important;
  font-family: "Times New Roman", "PT Serif", Georgia, serif !important;
  font-size: 22px !important;
  font-weight: 700 !important;
  margin-top: 32px !important;
  margin-bottom: 12px !important;
}

.legal-page--plain .legal-document h3 {
  color: #000 !important;
  font-family: "Times New Roman", "PT Serif", Georgia, serif !important;
  font-size: 19px !important;
  font-weight: 700 !important;
  margin-top: 24px !important;
  margin-bottom: 8px !important;
}

.legal-page--plain .legal-document strong {
  color: #000 !important;
  font-family: "Times New Roman", "PT Serif", Georgia, serif !important;
}

.legal-page--plain .legal-document a {
  color: #1a4daa !important;
  text-decoration: underline !important;
}

.legal-page--plain .legal-document table {
  font-size: 16px !important;
}

.legal-page--plain .legal-document th {
  background: #f5f5f5 !important;
  font-weight: 700 !important;
}

.legal-page--plain .legal-document td,
.legal-page--plain .legal-document th {
  border-color: #999 !important;
  padding: 10px 14px !important;
}

.legal-page--plain .legal-footer {
  border-top: 1px solid #ccc !important;
  padding: 16px 40px !important;
}

.legal-page--plain .legal-footer__copy {
  color: #666 !important;
  font-family: "Times New Roman", "PT Serif", Georgia, serif !important;
  font-size: 14px !important;
}

/* Show exit button in plain mode */
.legal-plain-exit {
  display: none;
}

.legal-page--plain .legal-plain-exit {
  display: inline-flex !important;
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
  background: #111;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  font-size: 15px;
  font-family: system-ui, -apple-system, sans-serif;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  transition: background 0.15s;
}

.legal-page--plain .legal-plain-exit:hover {
  background: #333;
}

/* Plain mode mobile adaptation */
@media (max-width: 600px) {
  .legal-page--plain .legal-header {
    padding: 20px 20px !important;
  }
  .legal-page--plain .legal-header__title {
    font-size: 22px !important;
  }
  .legal-page--plain .legal-content {
    padding: 24px 20px !important;
  }
  .legal-page--plain .legal-document p,
  .legal-page--plain .legal-document li,
  .legal-page--plain .legal-document td,
  .legal-page--plain .legal-document th {
    font-size: 16px !important;
  }
  .legal-page--plain .legal-document h2 {
    font-size: 20px !important;
  }
  .legal-page--plain .legal-document h3 {
    font-size: 17px !important;
  }
  .legal-page--plain .legal-footer {
    padding: 16px 20px !important;
  }
}

/* ============================================================
   Print Styles
   ============================================================ */

@media print {
  body {
    background: #fff !important;
    color: #000 !important;
    -webkit-print-color-adjust: exact;
  }

  .legal-page {
    background: #fff !important;
    animation: none !important;
  }

  .legal-header {
    position: static !important;
    background: #fff !important;
    backdrop-filter: none !important;
    border-bottom: 1px solid #ccc !important;
  }

  .legal-header__back,
  .legal-actions,
  .legal-plain-exit {
    display: none !important;
  }

  .legal-header__title {
    color: #000 !important;
    font-family: serif !important;
  }

  .legal-content {
    max-width: 100% !important;
    padding: 20px 0 !important;
  }

  .legal-document {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    animation: none !important;
  }

  .legal-document__meta,
  .legal-document p,
  .legal-document li,
  .legal-document td,
  .legal-document th {
    color: #333 !important;
    font-family: serif !important;
    font-size: 12pt !important;
    line-height: 1.5 !important;
  }

  .legal-document h2 {
    color: #000 !important;
    font-family: serif !important;
    font-size: 14pt !important;
    page-break-after: avoid;
  }

  .legal-document h3 {
    color: #000 !important;
    font-family: serif !important;
    font-size: 13pt !important;
    page-break-after: avoid;
  }

  .legal-document strong {
    color: #000 !important;
  }

  .legal-document a {
    color: #000 !important;
    text-decoration: none !important;
  }

  .legal-document a::after {
    content: " (" attr(href) ")";
    font-size: 10pt;
    color: #666;
  }

  .legal-document a[href^="#"]::after,
  .legal-document a[href^="legal-"]::after {
    content: "";
  }

  .legal-footer {
    border-top: 1px solid #ccc !important;
  }

  .legal-footer__copy {
    color: #666 !important;
    font-family: serif !important;
  }
}
