/* =====================================================================
   RYDUU - fit every screen
   Phone -> tablet -> laptop -> desktop -> big monitor (2K / 4K)
   Load AFTER style.css (and legal.css on the Privacy / Terms pages).
   ===================================================================== */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
/* 'clip' (not 'hidden'): hides sideways overflow WITHOUT turning the page into its own scroll area,
   which is what was switching off the sticky menu bar and the sticky contents bar. */
html, body { max-width: 100%; overflow-x: clip !important; }
@supports not (overflow: clip) { html, body { overflow-x: hidden !important; } }
/* sections must not become scroll areas either (they sit between the page and the sticky bars) */
@media (max-width: 767px) { .container, .row, section { overflow-x: clip !important; } }
img, svg, video { max-width: 100%; }
.lg-sec, .lg-step, .lg-note, .lg-kv, .lg-cta { overflow-wrap: break-word; }
.navbar { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }

/* ---------- MOBILE FIX 1: slide-in animations must not widen the page ---------- */
@media (max-width: 991px) {
  [data-aos="fade-left"]:not(.aos-animate), [data-aos="fade-right"]:not(.aos-animate),
  [data-aos="slide-left"]:not(.aos-animate), [data-aos="slide-right"]:not(.aos-animate),
  [data-aos="zoom-in-left"]:not(.aos-animate), [data-aos="zoom-in-right"]:not(.aos-animate) { transform: translate3d(0, 28px, 0) !important; }
}

/* ---------- MOBILE FIX 2: Privacy / Terms contents bar was stretching the text column ---------- */
@media (max-width: 860px) {
  .lg-layout { grid-template-columns: minmax(0, 1fr); }
  .lg-toc, .lg-layout > main, .lg-layout > div { min-width: 0; max-width: 100%; }
  .lg-list { max-width: 100%; -webkit-overflow-scrolling: touch; }
}

/* ---------- tablet portrait: two columns instead of one long column ---------- */
@media (min-width: 561px) and (max-width: 860px) {
  .lg-kv, .lg-steps { grid-template-columns: repeat(2, 1fr); }
  .lg-kv .full { grid-column: 1 / -1; }
}

/* ---------- laptop / small desktop ---------- */
@media (min-width: 992px) and (max-width: 1199px) {
  .lg-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 24px; }
  .lg-hero .lg-copy { max-width: min(660px, calc(100% - 260px)); }
}

/* ---------- phones ---------- */
@media (max-width: 560px) {
  .lg-hero { padding: 2.6rem 0 5rem; }
  .lg-hero h1 { font-size: clamp(1.95rem, 9vw, 2.4rem); }
  .lg-hero p { font-size: 1rem; }
  .lg-facts span { font-size: .78rem; padding: .35rem .75rem; }
  .lg-glance { margin-top: -48px; gap: 12px; }
  .lg-tile { padding: 1rem; border-radius: 18px; }
  .lg-sec { padding: 1.25rem 1rem; border-radius: 20px; }
  .lg-sec p, .lg-sec li { font-size: .97rem; line-height: 1.7; }
  .lg-note { flex-direction: column; gap: .5rem; }
  .lg-cta { padding: 1.2rem; }
}
@media (max-width: 360px) {
  .lg-wrap { padding: 0 12px; }
  .lg-num { width: 38px; height: 38px; }
  .lg-sec h2 { font-size: 1.02rem; }
}
@media (max-height: 480px) and (orientation: landscape) { .lg-hero { padding-top: 2rem; padding-bottom: 5rem; } }

/* ---------- large desktop ---------- */
@media (min-width: 1400px) {
  .lg-wrap { max-width: 1320px; }
  .lg-badge { right: max(24px, calc(50% - 636px)); }
  .lg-layout { grid-template-columns: 280px minmax(0, 1fr); gap: 40px; }
}

/* ---------- full-HD and bigger monitors ---------- */
@media (min-width: 1800px) {
  html { font-size: 17px; }
  :root { --nav-h: 80px; }
  .container { max-width: 1560px; }
  .lg-wrap { max-width: 1560px; }
  .lg-badge { width: 280px; height: 280px; font-size: 7.2rem; right: max(24px, calc(50% - 756px)); }
  .lg-hero { padding: 5rem 0 8rem; }
  .lg-hero .lg-copy { max-width: 780px; }
  .lg-layout { grid-template-columns: 310px minmax(0, 1fr); gap: 48px; }
  .lg-sec { padding: 2.4rem 2.8rem; }
}

/* ---------- 2K / 4K / ultra-wide ---------- */
@media (min-width: 2400px) {
  html { font-size: 19px; }
  :root { --nav-h: 92px; }
  .container { max-width: 1900px; }
  .lg-wrap { max-width: 1900px; }
  .lg-badge { width: 340px; height: 340px; font-size: 8.5rem; right: max(24px, calc(50% - 925px)); }
  .lg-hero .lg-copy { max-width: 900px; }
  .lg-layout { grid-template-columns: 350px minmax(0, 1fr); gap: 56px; }
}