/* Shared viewport safeguards for public pages, the app, and experiences. */
:root {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

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

html,
body {
  max-width: 100%;
}

body {
  overflow-x: hidden;
  overflow-x: clip;
}

img,
video,
svg,
iframe,
embed,
object {
  max-width: 100%;
}

img,
video,
svg {
  height: auto;
}

input,
select,
textarea,
button {
  max-width: 100%;
  font: inherit;
}

/* Skip-to-content link (accessibility) */
.skip-link {
  position: fixed;
  top: 0;
  left: -9999px;
  z-index: 2147483647;
  display: inline-block;
  padding: 12px 20px;
  background: #005ecb;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  border-radius: 0 0 12px 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  text-decoration: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.skip-link:focus-visible {
  left: 0;
  opacity: 1;
  pointer-events: auto;
}

:where(a[href], button, input, select, textarea, summary, [role="button"], [tabindex]:not([tabindex="-1"])):focus-visible {
  outline: 3px solid #ffd166 !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 0 6px #10253b !important;
}

@media (forced-colors: active) {
  :where(a[href], button, input, select, textarea, summary, [role="button"], [tabindex]:not([tabindex="-1"])):focus-visible {
    outline-color: Highlight !important;
    forced-color-adjust: auto;
    box-shadow: none !important;
  }
  :where(input, select, textarea, button) { border: 1px solid ButtonText; }
}

textarea {
  resize: vertical;
}

table {
  max-width: 100%;
}

@media (max-width: 1024px) {
  [style*="width:728px"],
  [style*="width: 728px"],
  [style*="max-width:728px"],
  [style*="max-width: 728px"] {
    width: 100% !important;
    max-width: 100% !important;
  }

  iframe {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .container {
    max-width: 100% !important;
  }

  [style*="padding: 0 40px"],
  [style*="padding:0 40px"] {
    padding-inline: 16px !important;
  }

  [role="dialog"],
  [aria-modal="true"],
  .modal-content,
  .LumnixApp-modal > div,
  #games-modal > div {
    max-width: calc(100vw - 24px) !important;
  }

  table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 480px) {
  [style*="width:450px"],
  [style*="width: 450px"],
  [style*="width:400px"],
  [style*="width: 400px"] {
    width: calc(100vw - 24px) !important;
    max-width: calc(100vw - 24px) !important;
  }

  button,
  input[type="button"],
  input[type="submit"],
  input[type="reset"] {
    min-height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* App dialogs keep their actions reachable in short landscape and keyboard viewports. */
body.lumnixapp-page .LumnixApp-modal {
  height: 100vh;
  height: 100dvh;
  padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  overflow-y: auto;
  align-items: safe center;
}

body.lumnixapp-page .LumnixApp-modal-content {
  width: min(100%, 800px);
  min-width: 0;
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  overflow-y: auto;
  overflow-wrap: anywhere;
}

/* Responsive containers for the site's manual AdSense units. */
:root {
    --lumnix-ad-desktop-container-width: 760px;
    --lumnix-ad-mobile-container-width: 320px;
    --lumnix-ad-container-padding: 8px;
    --lumnix-ad-container-gap: 8px;
    --lumnix-ad-desktop-spacing: 24px;
    --lumnix-ad-mobile-spacing: 20px;
}

.ad-desktop-only,
.ad-banner-middle,
.ad-mobile-banner,
.ad-mobile-only,
.ad-square-desktop,
.ad-skyscraper-left,
.ad-skyscraper-right {
    text-align: center;
    box-sizing: border-box;
}

.ad-desktop-only,
.ad-banner-middle,
.ad-square-desktop,
.ad-skyscraper-left,
.ad-skyscraper-right {
    display: flex;
    flex-direction: column !important;
    justify-content: center;
    align-items: center !important;
    gap: var(--lumnix-ad-container-gap);
    overflow: hidden;
}

.ad-label {
    display: block;
    align-self: center;
    margin: 0 0 2px;
    color: #666;
    font-size: 12px;
    line-height: 1;
    letter-spacing: 0.5px;
    text-align: center;
    text-transform: uppercase;
}

.lumnixapp-page .tile.ad-mobile-only .ad-label {
    color: #b9c4d0 !important;
}

.lumnix-ad-unit {
    display: block;
    flex: 0 1 auto;
    box-sizing: border-box;
}

html:root body .lumnix-ad-unit--desktop {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 728px !important;
    min-height: 90px !important;
}

html:root body .lumnix-ad-unit--mobile {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 300px !important;
    min-height: 250px !important;
}

.ad-desktop-only,
.ad-banner-middle,
.ad-square-desktop {
    width: var(--lumnix-ad-desktop-container-width) !important;
    max-width: 100vw !important;
    min-height: 0 !important;
    height: auto !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: var(--lumnix-ad-container-padding) !important;
    border: 1px solid rgba(42, 71, 94, 0.9);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(27, 40, 56, 0.96), rgba(23, 26, 33, 0.98));
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
}

.ad-mobile-banner,
.ad-mobile-only {
    display: none;
}

.main-layout-container {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

.main-content-column {
    position: relative;
    z-index: 10;
    width: 100%;
    min-width: 0;
}

.ad-skyscraper-left,
.ad-skyscraper-right {
    position: static;
    width: var(--lumnix-ad-desktop-container-width) !important;
    max-width: 100vw !important;
    min-height: 0 !important;
    height: auto !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: var(--lumnix-ad-container-padding) !important;
    border: 1px solid #2a475e;
    border-radius: 16px;
    background: #1b2838;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

@media (max-width: 768px) {
    html:root body .ad-desktop-only,
    html:root body .ad-skyscraper-left,
    html:root body .ad-skyscraper-right,
    html:root body [class*="ad-"]:has(> .lumnix-ad-unit--desktop) {
        display: none !important;
    }

    html:root body .ad-mobile-only,
    html:root body .ad-mobile-hero,
    html:root body [class*="ad-"]:has(> .lumnix-ad-unit--mobile) {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: var(--lumnix-ad-container-gap) !important;
        visibility: visible !important;
        width: min(100%, var(--lumnix-ad-mobile-container-width)) !important;
        min-width: 0 !important;
        max-width: 100% !important;
        min-height: 0 !important;
        height: auto !important;
        margin-top: var(--lumnix-ad-mobile-spacing) !important;
        margin-right: auto !important;
        margin-bottom: var(--lumnix-ad-mobile-spacing) !important;
        margin-left: auto !important;
        padding: var(--lumnix-ad-container-padding) !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
        opacity: 1 !important;
    }
}

@media (min-width: 769px) {
    html:root body .ad-mobile-only,
    html:root body .ad-mobile-hero,
    html:root body [class*="ad-"]:has(> .lumnix-ad-unit--mobile) {
        display: none !important;
    }

    html:root body .ad-desktop-only,
    html:root body .ad-skyscraper-left,
    html:root body .ad-skyscraper-right,
    html:root body [class*="ad-"]:has(> .lumnix-ad-unit--desktop) {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: var(--lumnix-ad-container-gap) !important;
        width: min(100%, var(--lumnix-ad-desktop-container-width)) !important;
        min-width: 0 !important;
        max-width: 100% !important;
        min-height: 0 !important;
        height: auto !important;
        margin-top: var(--lumnix-ad-desktop-spacing) !important;
        margin-right: auto !important;
        margin-bottom: var(--lumnix-ad-desktop-spacing) !important;
        margin-left: auto !important;
        padding: var(--lumnix-ad-container-padding) !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }
}

/* About pages only: editorial story within the existing site shell. */
body.about-editorial {
    background: radial-gradient(ellipse 65% 25% at 50% 16%, rgba(40, 49, 91, .22), transparent 75%), #101521;
    color: #e5eaf4;
}

.about-editorial .about-hero {
    position: relative;
    display: grid;
    align-items: center;
    height: 400px;
    overflow: hidden;
    isolation: isolate;
    text-align: left;
}

.about-editorial .about-hero-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    overflow: hidden;
    background: #182036;
    z-index: -2;
}

.about-editorial .about-hero::after {
    content: none;
}

.about-editorial .about-hero-media img,
.about-editorial .about-visual img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-editorial .about-hero-media img {
    object-position: center 48%;
    filter: brightness(1.08) saturate(1.04);
    animation: aboutHeroZoom 25s ease-in-out infinite;
}

@keyframes aboutHeroZoom {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.12); }
}

.about-editorial .about-hero-copy {
    width: min(100% - 40px, 1180px);
    margin: 0 auto;
    padding: 0;
    text-align: left;
}

.about-editorial .about-eyebrow {
    margin: 0 0 18px;
    color: #87d3eb;
    font-size: .76rem;
    font-weight: 750;
    letter-spacing: .18em;
    line-height: 1.5;
    text-transform: uppercase;
}

.about-editorial .about-hero h1 {
    max-width: 22ch;
    margin: 0 0 18px;
    font-size: clamp(2.2rem, 3.5vw, 3.25rem);
    font-weight: 800;
    letter-spacing: -.045em;
    line-height: .98;
    text-wrap: balance;
    text-shadow: none;
}

.about-editorial .about-hero-lead {
    max-width: 70ch;
    margin: 0;
    color: #f3f6ff;
    font-size: 1rem;
    line-height: 1.5;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .95);
}

.about-editorial .about-story {
    width: min(100% - 48px, 1220px);
    margin: 0 auto;
}

.about-editorial .about-chapter {
    padding: clamp(66px, 8vw, 124px) 0;
}

.about-editorial .about-chapter h2,
.about-editorial .about-ending h2 {
    margin: 0 0 25px;
    color: #f9fbff;
    font-size: clamp(2.15rem, 3.4vw, 3.65rem);
    font-weight: 720;
    letter-spacing: -.04em;
    line-height: 1.13;
    text-wrap: balance;
}

.about-editorial .about-story h2 {
    background: linear-gradient(90deg, #8b5cf6 0%, #06b6d4 30%, #a78bfa 60%, #14b8a6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-editorial .about-chapter p,
.about-editorial .about-ending p {
    color: #c5d1e1;
    font-size: clamp(1rem, .35vw + .95rem, 1.14rem);
    line-height: 1.83;
    margin: 0 0 18px;
    max-width: 65ch;
}

.about-editorial .about-chapter .about-eyebrow,
.about-editorial .about-ending .about-eyebrow {
    color: #87d3eb;
    font-size: .76rem;
    font-weight: 750;
    letter-spacing: .18em;
    line-height: 1.5;
    margin-bottom: 18px;
}

.about-editorial .about-chapter-copy p:last-child { margin-bottom: 0; }

.about-editorial .about-split {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
    gap: clamp(34px, 6vw, 96px);
    align-items: center;
}

.about-editorial .about-split--reverse {
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
}
.about-editorial .about-split--reverse .about-visual { order: 2; }
.about-editorial .about-split--reverse .about-chapter-copy { order: 1; }

.about-editorial .about-visual {
    width: 100%;
    aspect-ratio: 1.62;
    margin: 0;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid rgba(193, 207, 235, .15);
    background: #19223a;
}

.about-editorial .about-manifesto {
    margin: 16px 0 25px;
    padding-left: 22px;
    border-left: 2px solid #62c9e8;
    color: #fff;
    font-size: clamp(1.35rem, 2vw, 2rem);
    font-weight: 650;
    letter-spacing: -.025em;
    line-height: 1.4;
}

.about-editorial .about-ending {
    position: relative;
    padding: clamp(64px, 7vw, 100px) 0 clamp(80px, 9vw, 130px);
}
.about-editorial .about-ending .about-visual {
    position: relative;
    width: min(calc(100vw - 16px), 1600px);
    max-width: none;
    margin-left: calc(50% - min(calc(50vw - 8px), 800px));
    aspect-ratio: auto;
    overflow: visible;
    border: 0;
    border-radius: 0;
    box-shadow: 0 30px 90px rgba(0, 0, 0, .28);
}
.about-editorial .about-ending .about-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 50% 45%, transparent 31%, rgba(8, 13, 28, .52) 100%),
        linear-gradient(180deg, #101521 0%, transparent 18%, transparent 76%, #101521 100%);
}
.about-editorial .about-ending .about-visual img {
    height: auto;
    object-fit: contain;
}
.about-editorial .about-ending-copy {
    position: absolute;
    z-index: 1;
    top: calc(clamp(64px, 7vw, 100px) + 28px);
    left: 50%;
    width: min(100% - 48px, 860px);
    max-width: 860px;
    margin: 0;
    text-align: center;
    transform: translateX(-50%);
}
.about-editorial .about-ending-copy p { margin-left: auto; margin-right: auto; color: #fff; text-shadow: 0 2px 14px rgba(0, 0, 0, .95); }
.about-editorial .about-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    margin-top: 19px;
    padding: 16px 28px;
    border: 1px solid rgba(88, 86, 214, .7);
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(0, 122, 255, .35), rgba(88, 86, 214, .4));
    color: #fff;
    font-size: .98rem;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    box-shadow: 0 0 0 0 rgba(88, 86, 214, .6);
    transition: transform .25s ease, filter .25s ease;
}
.about-editorial .about-cta:hover,
.about-editorial .about-cta:focus-visible { transform: translateY(-2px); filter: brightness(1.04); }
.about-editorial .about-story a:focus-visible { outline: 2px solid #8bd8f6; outline-offset: 5px; }
.about-editorial .review-about-section { padding: 0 20px clamp(50px, 7vw, 95px); }

@media (max-width: 900px) {
    .about-editorial .about-split,
    .about-editorial .about-split--reverse { grid-template-columns: minmax(0, 1fr); }
    .about-editorial .about-split--reverse .about-visual,
    .about-editorial .about-split--reverse .about-chapter-copy { order: initial; }
    .about-editorial .about-visual { aspect-ratio: 16 / 10; }
    .about-editorial .about-ending-copy {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        max-width: none;
        margin: -20px auto 0;
        padding: 34px 16px 30px;
        background: linear-gradient(180deg, rgba(12, 18, 35, .98), #101521);
        text-align: left;
        transform: none;
    }
}

@media (max-width: 768px) {
    .about-editorial .about-hero { height: 350px; }
    .about-editorial .about-hero-media img { object-position: center 55%; }
    .about-editorial .about-hero-copy {
        align-self: center;
        display: flex;
        flex-direction: column;
        justify-content: center;
        width: min(100% - 32px, 640px);
        padding: 0;
    }
    .about-editorial .about-hero h1 { max-width: 22ch; margin-bottom: 12px; font-size: clamp(1.9rem, 7vw, 2.7rem); }
    .about-editorial .about-hero-lead { font-size: .9rem; line-height: 1.5; }
    .about-editorial .about-story { width: min(100% - 32px, 640px); }
    .about-editorial .about-chapter { padding: 68px 0; }
    .about-editorial .about-visual { border-radius: 13px; }
    .about-editorial .about-ending .about-visual { aspect-ratio: auto; border-radius: 0; }
    .about-editorial .about-ending { padding: 64px 0 80px; }
    .about-editorial .about-ending-copy { margin-top: -20px; }
    .about-editorial .about-manifesto { padding-left: 16px; }
    html:root body.about-editorial .ad-mobile-hero,
    html:root body.about-editorial .ad-mobile-banner { width: min(290px, calc(100vw - 24px)) !important; max-width: calc(100vw - 24px) !important; }
}

@media (max-width: 360px) {
    .about-editorial .about-eyebrow { font-size: .69rem; letter-spacing: .12em; }
}

@media (prefers-reduced-motion: reduce) {
    .about-editorial .about-hero-media img { animation: none; }
    .about-editorial .about-cta { transition: none; }
    .about-editorial .about-cta:hover,
    .about-editorial .about-cta:focus-visible { transform: none; }
}

/* Shared editorial layout for the four existing legal documents. */
body.legal-editorial {
    background: #101521;
    color: #e7edf7;
}

body.legal-editorial main {
    min-width: 0;
}

body.legal-editorial .legal-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    align-items: stretch;
    width: min(calc(100% - 40px), 1320px);
    min-height: 490px;
    margin: 76px auto 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(175, 199, 233, .15);
    border-radius: 22px;
    background: radial-gradient(circle at 0 35%, rgba(51, 70, 128, .2), transparent 60%), #131b2b;
    color: #eef5ff;
}

body.legal-editorial .legal-hero .container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    max-width: none;
    min-width: 0;
    margin: 0;
    padding: clamp(38px, 5vw, 72px);
}

body.legal-editorial .legal-hero h1 {
    max-width: none;
    margin: 0 0 28px;
    font-size: clamp(2.2rem, 3.3vw, 3.1rem) !important;
    font-weight: 800 !important;
    letter-spacing: -.045em !important;
    line-height: 1.08;
    text-align: left !important;
    text-wrap: balance;
    overflow-wrap: anywhere;
    animation: none !important;
    opacity: 1 !important;
}

body.legal-editorial .legal-hero #terms-title-main,
body.legal-editorial .legal-hero #privacy-title-main {
    font-size: clamp(2.2rem, 3.3vw, 3.1rem) !important;
}

body.legal-editorial .legal-hero .terms-meta {
    max-width: 58ch;
    margin: 0;
    color: #d5dfef;
    font-size: clamp(1rem, .35vw + .95rem, 1.12rem);
    line-height: 1.7;
    text-align: left !important;
    animation: none !important;
    opacity: 1 !important;
}

body.legal-editorial .legal-hero .terms-meta:first-of-type {
    order: 2;
    margin-top: 24px;
    color: #a8dce9;
    font-size: .86rem;
    font-weight: 650;
    letter-spacing: .035em;
}

body.legal-editorial .legal-hero .terms-meta:last-of-type {
    order: 1;
}

body.legal-editorial .legal-hero h1 { order: 0; }

body.legal-editorial .legal-hero__media {
    position: relative;
    min-width: 0;
    min-height: 100%;
    margin: 0;
    overflow: hidden;
    background: #18213a;
}

body.legal-editorial .legal-hero__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

body.legal-editorial .legal-hero__media::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(19, 27, 43, .5), transparent 20%), linear-gradient(0deg, rgba(16, 21, 33, .28), transparent 30%);
}

body.legal-editorial .main-layout-container {
    display: block;
    width: min(calc(100% - 40px), 1160px);
    max-width: none;
    margin: 0 auto;
    padding: clamp(34px, 5vw, 68px) 0 0;
}

body.legal-editorial .main-content-column {
    width: 100%;
    max-width: none;
    margin: 0;
}

body.legal-editorial .terms-summary {
    width: 100%;
    max-width: none;
    margin: 0 0 clamp(28px, 4vw, 48px);
    padding: clamp(24px, 3vw, 38px);
    border: 1px solid rgba(120, 163, 211, .22);
    border-left: 3px solid #63c8df;
    border-radius: 5px 18px 18px 5px;
    background: linear-gradient(110deg, rgba(35, 53, 78, .65), rgba(18, 28, 49, .5));
    box-shadow: none;
    animation: none !important;
    opacity: 1 !important;
}

body.legal-editorial .terms-summary h2 {
    margin: 0 0 22px !important;
    color: #91e5f2 !important;
    font-size: 1.2rem;
    font-weight: 750;
    letter-spacing: -.01em;
    text-align: left;
}

body.legal-editorial .terms-summary ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 38px;
    margin: 0;
    padding: 0;
    list-style: none;
    color: #e1eaf5;
    font-size: .98rem;
    line-height: 1.6;
}

body.legal-editorial .terms-summary li {
    display: flex;
    gap: 10px;
    min-width: 0;
    margin: 0;
}

body.legal-editorial .terms-summary li svg {
    flex: 0 0 16px;
    margin: 4px 0 0 !important;
}

body.legal-editorial .legal-reading-layout {
    display: grid;
    grid-template-columns: minmax(190px, 230px) minmax(0, 1fr);
    gap: clamp(34px, 5vw, 72px);
    align-items: start;
    margin: clamp(30px, 5vw, 64px) 0 clamp(90px, 9vw, 130px);
}

body.legal-editorial .legal-outline--desktop {
    display: block;
}

body.legal-editorial .legal-outline--mobile {
    display: none;
}

body.legal-editorial .legal-outline--desktop {
    position: sticky;
    top: 96px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    padding: 4px 4px 6px 0;
    scrollbar-width: thin;
}

body.legal-editorial .legal-outline h2 {
    margin: 0 0 18px;
    color: #a7dce9;
    font-size: .8rem;
    font-weight: 750;
    letter-spacing: .14em;
    text-align: left;
    text-transform: uppercase;
}

body.legal-editorial .legal-outline-list {
    display: grid;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}

body.legal-editorial .legal-outline a {
    display: block;
    padding: 8px 10px;
    border-left: 2px solid transparent;
    color: #aebed4;
    font-size: .87rem;
    line-height: 1.4;
    text-decoration: none;
    transition: color .2s ease, background .2s ease, border-color .2s ease;
}

body.legal-editorial .legal-outline a:hover,
body.legal-editorial .legal-outline a:focus-visible {
    border-left-color: #75dbe9;
    background: rgba(91, 169, 217, .09);
    color: #ecfaff;
}

body.legal-editorial .terms-content {
    width: 100%;
    max-width: 76ch;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    animation: none !important;
    opacity: 1 !important;
}

body.legal-editorial .terms-content h2 {
    scroll-margin-top: 96px;
    margin: 0 0 18px !important;
    padding: clamp(32px, 4vw, 52px) 0 0;
    border-top: 1px solid rgba(171, 195, 225, .16);
    color: #f3f7ff;
    font-size: clamp(1.45rem, 2vw, 2rem);
    font-weight: 740;
    letter-spacing: -.025em;
    line-height: 1.25;
    text-align: left;
    text-wrap: balance;
    animation: none !important;
    opacity: 1 !important;
}

body.legal-editorial .terms-content h2:not(:first-child) {
    margin-top: clamp(36px, 5vw, 62px) !important;
}

body.legal-editorial .terms-content h2:first-child {
    padding-top: 0;
    border-top: 0;
}

body.legal-editorial .terms-content p,
body.legal-editorial .terms-content ul,
body.legal-editorial .terms-content li {
    color: #d7e1ee;
    font-size: 1.04rem;
    line-height: 1.82;
}

body.legal-editorial .terms-content p {
    max-width: 72ch;
    margin: 0 0 18px;
}

body.legal-editorial .terms-content ul {
    margin: 5px 0 22px;
    padding-left: 24px;
    list-style: disc;
}

body.legal-editorial .terms-content li {
    margin: 0 0 9px;
    padding-left: 4px;
}

body.legal-editorial .terms-content li::marker { color: #6bd3e7; }
body.legal-editorial .terms-content strong { color: #f2f7ff; font-weight: 700; }
body.legal-editorial .terms-content a { color: #8de6f4 !important; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
body.legal-editorial .terms-content a:hover { color: #c6f5fa !important; }
body.legal-editorial .legal-outline a:focus-visible,
body.legal-editorial .terms-content a:focus-visible,
body.legal-editorial .legal-outline summary:focus-visible { outline: 2px solid #91e5f2; outline-offset: 3px; }

@media (max-width: 900px) {
    body.legal-editorial .legal-hero {
        grid-template-columns: minmax(0, 1fr);
        min-height: 0;
        width: min(calc(100% - 24px), 740px);
        margin-top: 66px;
        border-radius: 18px;
    }
    body.legal-editorial .legal-hero .container { padding: clamp(28px, 5vw, 48px); }
    body.legal-editorial .legal-hero h1 { max-width: 20ch; font-size: clamp(2rem, 6vw, 3.3rem) !important; }
    body.legal-editorial .legal-hero #terms-title-main,
    body.legal-editorial .legal-hero #privacy-title-main { font-size: clamp(2rem, 6vw, 3.3rem) !important; }
    body.legal-editorial .legal-hero__media { min-height: 0; aspect-ratio: 16 / 9; }
    body.legal-editorial .legal-hero__media img { position: absolute; inset: 0; }
    body.legal-editorial .legal-hero__media::after { background: linear-gradient(0deg, rgba(16, 21, 33, .22), transparent 36%); }
    body.legal-editorial .main-layout-container { width: min(calc(100% - 32px), 740px); }
    body.legal-editorial .legal-reading-layout { display: block; }
    body.legal-editorial .legal-outline--desktop { display: none; }
    body.legal-editorial .legal-outline--mobile {
        display: block;
        margin: 0 0 42px;
        border: 1px solid rgba(130, 174, 217, .23);
        border-radius: 12px;
        background: rgba(26, 39, 60, .58);
    }
    body.legal-editorial .legal-outline--mobile summary {
        min-height: 50px;
        padding: 15px 18px;
        color: #def4fa;
        font-size: .94rem;
        font-weight: 700;
        cursor: pointer;
    }
    body.legal-editorial .legal-outline--mobile nav { padding: 0 12px 18px; }
    body.legal-editorial .legal-outline--mobile a { min-height: 38px; }
}

@media (max-width: 600px) {
    body.legal-editorial .legal-hero .container { padding: 30px 16px 26px; }
    body.legal-editorial .legal-hero h1 { font-size: clamp(1.5rem, 7.2vw, 2.55rem) !important; }
    body.legal-editorial .legal-hero #terms-title-main,
    body.legal-editorial .legal-hero #privacy-title-main { font-size: clamp(1.5rem, 7.2vw, 2.55rem) !important; }
    body.legal-editorial .legal-hero .terms-meta { font-size: .98rem; line-height: 1.6; }
    body.legal-editorial .legal-hero__media { aspect-ratio: 1.8; }
    body.legal-editorial .terms-summary { padding: 22px 18px; }
    body.legal-editorial .terms-summary ul { grid-template-columns: minmax(0, 1fr); gap: 14px; font-size: .94rem; }
    body.legal-editorial .terms-content p,
    body.legal-editorial .terms-content ul,
    body.legal-editorial .terms-content li { font-size: 1rem; line-height: 1.75; }
}

@media (max-width: 768px) {
    html:root body.legal-editorial .ad-mobile-banner {
        width: min(300px, calc(100vw - 24px)) !important;
        max-width: calc(100vw - 24px) !important;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    body.legal-editorial .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
    }
    body.legal-editorial .footer-section { min-width: 0; overflow-wrap: anywhere; }
}

@media (prefers-reduced-motion: reduce) {
    body.legal-editorial .legal-outline a { transition: none; }
    body.legal-editorial .legal-hero h1,
    body.legal-editorial .legal-hero .terms-meta,
    body.legal-editorial .terms-summary,
    body.legal-editorial .terms-content,
    body.legal-editorial .terms-content h2 { animation: none !important; opacity: 1 !important; transform: none !important; }
}
