/* 20NINE MEDIA — standalone Legal / Privacy / FAQ stylesheet V17 */
/* Same 21:9 presentation image format as the main page on desktop. */

@font-face {
  font-family: "Montserrat Local";
  src: url("/fonts/Montserrat-ExtraLight.woff2") format("woff2"),
       url("/fonts/Montserrat-ExtraLight.ttf") format("truetype");
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat Local";
  src: url("/fonts/Montserrat-Light.woff2") format("woff2"),
       url("/fonts/Montserrat-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat Local";
  src: url("/fonts/Montserrat-Regular.woff2") format("woff2"),
       url("/fonts/Montserrat-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #050505;
  --white: #f8f8f2;
  --blue: #26a9ee;
  --rail: 56px;

  --frame-max-w: 100vw;
  --frame-max-h: 100svh;
  --stage-w: calc(var(--frame-max-w) - var(--rail));
  --stage-h: min(var(--frame-max-h), calc(var(--stage-w) * 9 / 21));
  --frame-w: calc(var(--stage-w) + var(--rail));
  --frame-h: var(--stage-h);

  --content-x: clamp(70px, 8.5vw, 150px);
  --content-y: clamp(72px, 7vw, 132px);

  --font: "Montserrat Local", "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.19, 1, .22, 1);
}

@media (min-aspect-ratio: 21 / 9) {
  :root {
    --stage-h: 100svh;
    --stage-w: calc(var(--stage-h) * 21 / 9);
    --frame-w: calc(var(--stage-w) + var(--rail));
    --frame-h: var(--stage-h);
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #000;
  color: var(--white);
  font-family: var(--font);
  font-weight: 300;
  letter-spacing: -.04em;
  -webkit-text-size-adjust: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

svg {
  display: block;
}

/* outer viewport */
.legal-page-shell {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #000;
}

/* centered 21:9 presentation frame */
.legal-frame {
  position: relative;
  width: var(--frame-w);
  height: var(--frame-h);
  max-width: 100vw;
  max-height: 100svh;
  overflow: visible;
  background: #000;
}

/* rail belongs to same frame */
.legal-rail {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 50;
  width: var(--rail);
  height: var(--frame-h);
  background: rgba(0, 0, 0, .9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-right: 1px solid rgba(255, 255, 255, .06);
}

.legal-rail-brand {
  position: absolute;
  top: 22%;
  left: 50%;
  writing-mode: vertical-rl;
  transform: translate(-50%, -50%) rotate(180deg);
  color: rgba(248, 248, 242, .44);
  font-size: .54rem;
  letter-spacing: .58em;
  line-height: 1;
}

.legal-rail-progress {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  justify-items: center;
  gap: 12px;
  transform: translate(-50%, -50%);
}

.legal-rail-number {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  color: rgba(248, 248, 242, .6);
  font-size: .56rem;
  letter-spacing: .04em;
}

.legal-rail-line {
  position: relative;
  display: block;
  width: 1px;
  height: 62px;
  background: rgba(248, 248, 242, .25);
  overflow: hidden;
}

.legal-rail-line span {
  position: absolute;
  inset: 0 auto auto 0;
  width: 1px;
  height: 100%;
  background: var(--white);
}

.legal-social-nav {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 34px;
  display: grid;
  justify-items: center;
  gap: 25px;
}

.legal-social-nav a {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: rgba(248, 248, 242, .9);
  transition: color .25s ease, transform .25s var(--ease);
}

.legal-social-nav a:hover {
  color: var(--blue);
  transform: translateY(-2px);
}

.legal-social-nav svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* fixed stage with same 21:9 image crop */
.legal-stage {
  position: absolute;
  top: 0;
  left: var(--rail);
  width: var(--stage-w);
  height: var(--stage-h);
  overflow: hidden;
  background: #000;
  isolation: isolate;
}

.legal-bg {
  position: absolute;
  inset: 0;
  z-index: -4;
  background: url("/images/20nine-contact-rainforest.png") center / cover no-repeat;
  transform: scale(1.018);
}

.legal-shade {
  position: absolute;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background:
    radial-gradient(circle at 58% 24%, rgba(255, 158, 50, .10), transparent 32%),
    linear-gradient(90deg, rgba(0,0,0,.88) 0%, rgba(0,0,0,.64) 48%, rgba(0,0,0,.46) 100%);
}

/* header */
.legal-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: clamp(24px, 3.3vw, 48px) clamp(28px, 5vw, 78px) 0 clamp(36px, 6vw, 94px);
}

.legal-logo {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  font-size: clamp(.86rem, .95vw, 1.2rem);
  font-weight: 300;
  letter-spacing: .34em;
  line-height: 1;
}

.legal-main-nav {
  display: flex;
  align-items: center;
  gap: clamp(24px, 3vw, 52px);
  text-transform: uppercase;
  font-size: clamp(.54rem, .62vw, .7rem);
  font-weight: 300;
  letter-spacing: .04em;
  color: rgba(248, 248, 242, .58);
}

.legal-main-nav a {
  position: relative;
  padding-bottom: 13px;
  transition: color .25s ease;
}

.legal-main-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 2px;
  transform: translateX(-50%);
  background: var(--white);
  transition: width .42s var(--ease);
}

.legal-main-nav a:hover {
  color: var(--white);
}

.legal-main-nav a:hover::after {
  width: clamp(42px, 4vw, 64px);
}

/* scrollable content panel inside fixed image frame */
.legal-content {
  position: absolute;
  z-index: 10;
  left: var(--content-x);
  top: clamp(96px, 13vh, 140px);
  width: min(850px, calc(100% - var(--content-x) - clamp(42px, 7vw, 118px)));
  max-height: calc(var(--stage-h) - clamp(200px, 27vh, 300px));
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 0 clamp(22px, 2.4vw, 34px) 0 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(248,248,242,.34) rgba(248,248,242,.08);
}

.legal-content::-webkit-scrollbar {
  width: 4px;
}

.legal-content::-webkit-scrollbar-track {
  background: rgba(248,248,242,.08);
}

.legal-content::-webkit-scrollbar-thumb {
  background: rgba(248,248,242,.34);
}

.legal-kicker {
  margin: 0 0 clamp(14px, 1.6vw, 22px);
  color: var(--blue);
  font-size: clamp(.58rem, .66vw, .76rem);
  font-weight: 300;
  letter-spacing: .22em;
  line-height: 1.1;
  text-transform: uppercase;
}

.legal-content h1 {
  margin: 0 0 clamp(28px, 4.2vw, 56px);
  color: rgba(248,248,242,.96);
  font-size: clamp(3.2rem, 7vw, 7.2rem);
  font-weight: 200;
  line-height: .92;
  letter-spacing: -.08em;
}

.legal-content h2 {
  margin: clamp(28px, 3.2vw, 44px) 0 .75em;
  color: rgba(248,248,242,.92);
  font-size: clamp(1rem, 1.28vw, 1.34rem);
  font-weight: 300;
  line-height: 1.22;
  letter-spacing: -.035em;
}

.legal-content p,
.legal-content li {
  color: rgba(248,248,242,.72);
  font-size: clamp(.82rem, .96vw, 1.02rem);
  font-weight: 300;
  line-height: 1.62;
  letter-spacing: -.035em;
}

.legal-content p {
  margin: 0 0 1em;
}

.legal-content ul {
  margin: .5em 0 1.4em;
  padding-left: 1.15em;
}

.legal-content a {
  color: rgba(248,248,242,.94);
  border-bottom: 1px solid rgba(248,248,242,.28);
}

.legal-note {
  margin-top: 2rem;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(248,248,242,.14);
  color: rgba(248,248,242,.44);
  font-size: clamp(.7rem, .78vw, .84rem);
}

/* footer always inside fixed image frame */
.legal-footer {
  position: absolute;
  z-index: 20;
  left: clamp(42px, 5vw, 84px);
  right: clamp(32px, 5vw, 78px);
  bottom: clamp(18px, 3vw, 38px);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.legal-copyright {
  color: rgba(248,248,242,.32);
  font-size: clamp(.52rem, .55vw, .64rem);
  font-weight: 300;
  letter-spacing: .04em;
  line-height: 1.4;
}

.legal-footer-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(1.4rem, 2vw, 2.4rem);
  font-size: clamp(.52rem, .55vw, .64rem);
  font-weight: 300;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.legal-footer-nav a {
  color: rgba(248,248,242,.48);
  transition: color .3s ease;
}

.legal-footer-nav a:hover,
.legal-footer-nav a.active {
  color: rgba(248,248,242,.95);
}

/* Portrait / mobile: same behavior as main page — full-height mobile stage */
@media (max-width: 980px), (orientation: portrait) {
  :root {
    --rail: 38px;
    --stage-w: 100vw;
    --stage-h: 100svh;
    --frame-w: 100vw;
    --frame-h: 100svh;
  }

  .legal-page-shell {
    display: block;
    height: 100svh;
  }

  .legal-frame {
    width: 100vw;
    height: 100svh;
    overflow: hidden;
  }

  .legal-rail {
    height: 100svh;
    background: linear-gradient(
      90deg,
      rgba(0,0,0,.16) 0%,
      rgba(0,0,0,.06) 55%,
      rgba(0,0,0,0) 100%
    );
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-right: 0;
  }

  .legal-stage {
    left: 0;
    width: 100vw;
    height: 100svh;
  }

  .legal-header {
    padding: 24px 18px 0 calc(var(--rail) + 22px);
  }

  .legal-logo {
    font-size: clamp(.62rem, 3vw, .8rem);
    letter-spacing: .25em;
  }

  .legal-main-nav {
    gap: clamp(12px, 3vw, 20px);
    font-size: clamp(.43rem, 2.1vw, .56rem);
  }

  .legal-main-nav a {
    padding-bottom: 8px;
  }

  .legal-content {
    left: calc(var(--rail) + 22px);
    top: 96px;
    width: calc(100vw - var(--rail) - 44px);
    max-height: calc(100svh - 220px);
    padding-right: 16px;
  }

  .legal-content h1 {
    font-size: clamp(2.45rem, 12vw, 4.4rem);
    margin-bottom: 26px;
  }

  .legal-content h2 {
    font-size: clamp(.96rem, 4vw, 1.18rem);
  }

  .legal-content p,
  .legal-content li {
    font-size: clamp(.76rem, 3.35vw, .9rem);
    line-height: 1.48;
  }

  .legal-footer {
    left: calc(var(--rail) + 22px);
    right: 18px;
    bottom: 16px;
    gap: .72rem;
    flex-direction: column;
    align-items: flex-start;
  }

  .legal-footer-nav {
    gap: .95rem;
    flex-wrap: wrap;
  }
}

@media (max-width: 430px) and (orientation: portrait) {
  .legal-logo {
    display: none;
  }

  .legal-header {
    justify-content: flex-end;
  }

  .legal-main-nav {
    gap: 14px;
    font-size: .48rem;
  }
}

/* landscape phone */
@media (orientation: landscape) and (max-height: 560px) {
  :root {
    --rail: 38px;
    --stage-w: 100vw;
    --stage-h: 100svh;
    --frame-w: 100vw;
    --frame-h: 100svh;
  }

  .legal-page-shell {
    display: block;
    height: 100svh;
  }

  .legal-frame {
    width: 100vw;
    height: 100svh;
    overflow: hidden;
  }

  .legal-rail {
    height: 100svh;
  }

  .legal-stage {
    left: 0;
    width: 100vw;
    height: 100svh;
  }

  .legal-header {
    padding-top: clamp(13px, 5vh, 22px);
    padding-left: calc(var(--rail) + 24px);
    padding-right: 20px;
  }

  .legal-main-nav {
    display: flex;
    gap: clamp(18px, 4vw, 42px);
    font-size: clamp(.48rem, 1.85vh, .62rem);
  }

  .legal-social-nav {
    display: grid;
    bottom: clamp(10px, 4vh, 18px);
    gap: clamp(9px, 3.2vh, 18px);
  }

  .legal-rail-brand {
    display: block;
    top: 25%;
    font-size: clamp(.4rem, 1.7vh, .52rem);
    letter-spacing: clamp(.28em, 1.25vh, .48em);
  }

  .legal-rail-line {
    display: block;
    height: clamp(34px, 13vh, 52px);
  }

  .legal-content {
    left: calc(var(--rail) + 26px);
    top: clamp(58px, 16vh, 78px);
    width: min(760px, calc(100vw - var(--rail) - 70px));
    max-height: calc(100svh - 120px);
    padding-right: 18px;
  }

  .legal-content h1 {
    font-size: clamp(2.15rem, 11.5vh, 4.05rem);
    margin-bottom: clamp(18px, 5vh, 32px);
  }

  .legal-content h2 {
    margin-top: clamp(18px, 5vh, 32px);
    font-size: clamp(.86rem, 3.9vh, 1.08rem);
  }

  .legal-content p,
  .legal-content li {
    font-size: clamp(.66rem, 2.85vh, .82rem);
    line-height: 1.42;
  }

  .legal-footer {
    left: calc(var(--rail) + 26px);
    right: 22px;
    bottom: 9px;
    flex-direction: row;
    align-items: flex-end;
  }

  .legal-copyright,
  .legal-footer-nav {
    font-size: clamp(.44rem, 1.85vh, .54rem);
  }

  .legal-footer-nav {
    gap: .9rem;
  }
}

@media (orientation: landscape) and (max-height: 430px) {
  .legal-rail-line {
    display: none;
  }
}

@media (orientation: landscape) and (max-height: 390px) {
  .legal-copyright {
    display: none;
  }

  .legal-footer {
    bottom: 7px;
  }

  .legal-footer-nav {
    gap: .75rem;
    font-size: .44rem;
  }

  .legal-content {
    max-height: calc(100svh - 92px);
  }
}


/* =========================================================
   V18 LEGAL CONTENT SPACE EXPANSION
   The scroll window uses more of the available 21:9 frame.
   ========================================================= */

/* Desktop / large screens */
.legal-content {
  left: clamp(58px, 6.4vw, 118px);
  top: clamp(88px, 10.5vh, 118px);
  width: min(1040px, calc(100% - clamp(58px, 6.4vw, 118px) - clamp(34px, 5vw, 82px)));
  max-height: calc(var(--stage-h) - clamp(155px, 20vh, 220px));
}

/* give the footer a little less reserved vertical space */
.legal-footer {
  bottom: clamp(14px, 2.2vw, 28px);
}

/* slightly more compact headline spacing inside the legal panel */
.legal-content h1 {
  margin-bottom: clamp(22px, 3.1vw, 42px);
}

.legal-content h2 {
  margin-top: clamp(22px, 2.55vw, 34px);
}

/* Portrait / mobile: use more vertical space, keep footer visible */
@media (max-width: 980px), (orientation: portrait) {
  .legal-content {
    top: 84px;
    max-height: calc(100svh - 176px);
  }

  .legal-footer {
    bottom: 12px;
  }

  .legal-content h1 {
    margin-bottom: 22px;
  }
}

/* Landscape phones: use almost the full height */
@media (orientation: landscape) and (max-height: 560px) {
  .legal-content {
    top: clamp(48px, 13vh, 66px);
    max-height: calc(100svh - 92px);
  }

  .legal-footer {
    bottom: 7px;
  }
}

/* Ultra-low height: content gets priority */
@media (orientation: landscape) and (max-height: 390px) {
  .legal-content {
    max-height: calc(100svh - 76px);
  }
}
