:root {
  --et-bg: #07100d;
  --et-bg-deep: #040907;
  --et-panel: rgba(20, 37, 31, .86);
  --et-panel-soft: rgba(25, 48, 39, .72);
  --et-panel-strong: #14251f;
  --et-gold: #d7b46a;
  --et-gold-light: #f1d99b;
  --et-green: #74aa8f;
  --et-text: #f6f3e9;
  --et-muted: #aab5ae;
  --et-line: rgba(215, 180, 106, .20);
  --et-line-soft: rgba(255, 255, 255, .07);
  --et-shadow: 0 28px 70px rgba(0, 0, 0, .28);
}

html { scroll-behavior: smooth; }
body.four-eternity-legal {
  margin: 0;
  min-width: 320px;
  color: var(--et-text);
  background:
    radial-gradient(circle at 84% -4%, rgba(215, 180, 106, .13), transparent 31rem),
    radial-gradient(circle at -8% 34%, rgba(83, 139, 111, .15), transparent 34rem),
    linear-gradient(165deg, #0d1a16 0%, var(--et-bg) 46%, var(--et-bg-deep) 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.four-eternity-legal::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .34;
  background-image:
    linear-gradient(30deg, transparent 46%, rgba(215, 180, 106, .035) 47%, rgba(215, 180, 106, .035) 53%, transparent 54%),
    linear-gradient(-30deg, transparent 46%, rgba(215, 180, 106, .025) 47%, rgba(215, 180, 106, .025) 53%, transparent 54%);
  background-size: 44px 76px;
  mask-image: linear-gradient(to bottom, #000 0, rgba(0,0,0,.55) 42%, transparent 88%);
}

.four-eternity-legal a { color: inherit; }
.four-eternity-legal .container { width: min(1180px, calc(100% - 36px)); margin-inline: auto; }
.four-eternity-legal .container.narrow { width: min(920px, calc(100% - 36px)); }
.four-eternity-legal .skip-link { background: var(--et-gold); color: #102018; }

/* Header */
.et-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(215, 180, 106, .10);
  background: linear-gradient(to bottom, rgba(7,16,13,.97), rgba(7,16,13,.88));
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.et-header__inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.et-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 0;
}
.et-brand__icon {
  width: 46px;
  height: 46px;
  display: block;
  border-radius: 13px;
  box-shadow: 0 9px 28px rgba(0,0,0,.34), 0 0 0 1px rgba(215,180,106,.18);
}
.et-brand__copy { display: grid; gap: 1px; line-height: 1.05; }
.et-brand__copy strong { color: var(--et-text); font-size: 1.02rem; font-weight: 690; letter-spacing: .01em; }
.et-brand__copy small { color: var(--et-gold); font-size: .65rem; letter-spacing: .13em; text-transform: uppercase; font-weight: 750; }
.et-header__right { display: flex; align-items: center; gap: 9px; }
.et-nav-link,
.et-language-link {
  min-height: 38px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  text-decoration: none;
  color: #d4ddd7;
  font-size: .78rem;
  font-weight: 650;
  border: 1px solid transparent;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.et-nav-link:hover,
.et-language-link:hover { color: var(--et-gold-light); background: rgba(215,180,106,.075); border-color: var(--et-line); }
.et-nav-link:active,
.et-language-link:active { transform: scale(.98); }
.et-shadowless {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px 7px 8px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 999px;
  text-decoration: none;
  background: rgba(255,255,255,.035);
}
.et-shadowless img { width: 27px; height: 27px; object-fit: contain; border-radius: 8px; display: block; }
.et-shadowless span { color: var(--et-muted); font-size: .72rem; font-weight: 650; }

/* Hero */
.et-hero { padding: 54px 0 34px; }
.et-hero__card {
  position: relative;
  overflow: hidden;
  min-height: 390px;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(250px, .7fr);
  gap: 38px;
  align-items: center;
  padding: clamp(30px, 5vw, 58px);
  border-radius: 34px;
  border: 1px solid rgba(215,180,106,.24);
  background:
    radial-gradient(circle at 82% 17%, rgba(250,222,157,.17), transparent 20%),
    radial-gradient(circle at 10% 110%, rgba(116,170,143,.13), transparent 34%),
    linear-gradient(145deg, rgba(31,58,47,.97), rgba(12,27,22,.98));
  box-shadow: var(--et-shadow);
}
.et-hero__card::before {
  content: "";
  position: absolute;
  width: 390px;
  height: 390px;
  right: -140px;
  bottom: -185px;
  border-radius: 50%;
  border: 1px solid rgba(215,180,106,.14);
  box-shadow: 0 0 0 45px rgba(215,180,106,.028), 0 0 0 90px rgba(215,180,106,.018);
}
.et-hero__card::after {
  content: "✦";
  position: absolute;
  right: 42%;
  top: 34px;
  color: rgba(215,180,106,.18);
  font-size: 1.1rem;
}
.et-hero__content { position: relative; z-index: 2; }
.et-eyebrow {
  margin: 0 0 10px;
  color: var(--et-gold);
  font-size: .72rem;
  line-height: 1.2;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 800;
}
.et-hero h1 {
  margin: 0;
  color: var(--et-text);
  font-size: clamp(2.6rem, 7vw, 5.15rem);
  line-height: .95;
  letter-spacing: -.055em;
  font-weight: 650;
}
.et-hero__meaning {
  display: block;
  margin-top: 10px;
  color: var(--et-gold-light);
  font-size: clamp(1rem, 2.2vw, 1.28rem);
  letter-spacing: .01em;
  font-weight: 520;
}
.et-hero__lead {
  max-width: 670px;
  margin: 22px 0 0;
  color: #c8d2cc;
  font-size: clamp(.98rem, 1.6vw, 1.08rem);
  line-height: 1.75;
}
.et-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.et-meta span {
  padding: 7px 10px;
  border: 1px solid rgba(215,180,106,.18);
  border-radius: 999px;
  background: rgba(7,16,13,.26);
  color: #b9c5bd;
  font-size: .7rem;
  font-weight: 650;
}
.et-hero__visual { position: relative; z-index: 2; display: grid; place-items: center; }
.et-app-icon-wrap {
  position: relative;
  width: min(250px, 70vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}
.et-app-icon-wrap::before,
.et-app-icon-wrap::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(215,180,106,.16);
}
.et-app-icon-wrap::before { inset: 6%; }
.et-app-icon-wrap::after { inset: -8%; border-style: dashed; opacity: .55; }
.et-app-icon {
  width: 72%;
  height: 72%;
  border-radius: 27%;
  display: block;
  box-shadow: 0 30px 70px rgba(0,0,0,.38), 0 0 42px rgba(215,180,106,.10);
}
.et-trust-row {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.et-trust {
  min-height: 78px;
  padding: 14px 15px;
  border-radius: 18px;
  border: 1px solid var(--et-line-soft);
  background: rgba(7,16,13,.38);
  display: grid;
  gap: 4px;
}
.et-trust strong { color: var(--et-gold-light); font-size: .83rem; }
.et-trust span { color: var(--et-muted); font-size: .72rem; line-height: 1.45; }

/* language navigator */
.et-language-bar {
  position: sticky;
  top: 88px;
  z-index: 30;
  display: flex;
  justify-content: center;
  gap: 8px;
  width: max-content;
  max-width: calc(100% - 36px);
  margin: 0 auto 28px;
  padding: 6px;
  border: 1px solid rgba(215,180,106,.18);
  border-radius: 999px;
  background: rgba(12,27,22,.88);
  box-shadow: 0 14px 36px rgba(0,0,0,.22);
  backdrop-filter: blur(16px);
}
.et-language-bar a {
  min-width: 112px;
  min-height: 37px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 12px;
  border-radius: 999px;
  color: #c3cec7;
  text-decoration: none;
  font-size: .77rem;
  font-weight: 700;
}
.et-language-bar a:hover { background: rgba(215,180,106,.09); color: var(--et-gold-light); }
.et-language-bar .flag { font-size: .95rem; }

/* Policy sections */
.et-policy-section { padding: 22px 0 54px; }
.et-policy-section--alt { background: linear-gradient(180deg, rgba(255,255,255,.012), rgba(116,170,143,.025)); border-block: 1px solid rgba(255,255,255,.025); }
.et-section-head {
  display: grid;
  gap: 8px;
  margin-bottom: 20px;
  padding: 0 4px;
}
.et-section-head h2 { margin: 0; color: var(--et-text); font-size: clamp(1.75rem, 4vw, 2.45rem); letter-spacing: -.025em; font-weight: 640; }
.et-section-head p:last-child { margin: 0; color: var(--et-muted); line-height: 1.65; }
.et-legal-grid { display: grid; gap: 12px; }
.four-eternity-legal .et-legal-card {
  position: relative;
  padding: 22px 24px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.06);
  background: linear-gradient(145deg, rgba(23,43,35,.87), rgba(14,29,24,.88));
  box-shadow: 0 12px 35px rgba(0,0,0,.11);
  overflow: hidden;
}
.four-eternity-legal .et-legal-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 2px;
  border-radius: 99px;
  background: linear-gradient(var(--et-gold), transparent);
  opacity: .55;
}
.four-eternity-legal .et-legal-card h3 {
  margin: 0 0 10px;
  color: var(--et-gold-light);
  font-size: 1.02rem;
  font-weight: 680;
}
.four-eternity-legal .et-legal-card p,
.four-eternity-legal .et-legal-card li {
  color: #b9c6be;
  font-size: .91rem;
  line-height: 1.7;
}
.four-eternity-legal .et-legal-card p { margin: 0; }
.four-eternity-legal .et-legal-card p + p { margin-top: 10px; }
.four-eternity-legal .et-legal-card ul { margin: 10px 0 0; padding-left: 21px; }
.four-eternity-legal .et-legal-card li + li { margin-top: 6px; }
.four-eternity-legal .et-legal-card a { color: var(--et-gold-light); text-decoration-color: rgba(241,217,155,.35); text-underline-offset: 3px; overflow-wrap: anywhere; }
.four-eternity-legal .et-legal-card a:hover { color: #fff0c8; text-decoration-color: currentColor; }
.et-card-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 9px;
  color: var(--et-green);
  font-size: .66rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .13em;
}
.et-card-label::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.et-legal-card--highlight { border-color: rgba(215,180,106,.20) !important; background: linear-gradient(145deg, rgba(42,67,55,.90), rgba(17,34,28,.92)) !important; }
.et-legal-note {
  margin-top: 14px !important;
  padding: 12px 14px;
  border: 1px solid rgba(215,180,106,.13);
  border-radius: 14px;
  background: rgba(215,180,106,.05);
  color: #d8d0bd !important;
}

/* page footer */
.et-footer {
  padding: 32px 0 calc(32px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(215,180,106,.12);
  background: rgba(4,9,7,.48);
}
.et-footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.et-footer__brand { display: flex; align-items: center; gap: 11px; }
.et-footer__brand img:first-child { width: 38px; height: 38px; border-radius: 11px; }
.et-footer__brand strong { display: block; color: var(--et-text); font-size: .87rem; }
.et-footer__brand span { display: block; margin-top: 2px; color: var(--et-muted); font-size: .69rem; }
.et-footer__links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px 16px; }
.et-footer__links a { color: var(--et-muted); text-decoration: none; font-size: .75rem; }
.et-footer__links a:hover { color: var(--et-gold-light); }

@media (max-width: 820px) {
  .et-header__right .et-nav-link { display: none; }
  .et-hero { padding-top: 26px; }
  .et-hero__card { grid-template-columns: 1fr; text-align: center; min-height: 0; padding: 34px 24px 30px; gap: 24px; }
  .et-hero__lead { margin-inline: auto; }
  .et-meta { justify-content: center; }
  .et-hero__visual { grid-row: 1; }
  .et-app-icon-wrap { width: 164px; }
  .et-trust-row { grid-template-columns: 1fr; text-align: left; }
  .et-hero__card::after { display: none; }
  .et-footer__inner { align-items: flex-start; flex-direction: column; }
  .et-footer__links { justify-content: flex-start; }
}

@media (max-width: 560px) {
  .four-eternity-legal .container,
  .four-eternity-legal .container.narrow { width: min(100% - 24px, 920px); }
  .et-header__inner { min-height: 66px; gap: 8px; }
  .et-brand__icon { width: 40px; height: 40px; border-radius: 11px; }
  .et-brand__copy strong { font-size: .9rem; }
  .et-brand__copy small { font-size: .55rem; }
  .et-shadowless { padding: 5px; }
  .et-shadowless img { width: 30px; height: 30px; }
  .et-shadowless span { display: none; }
  .et-header__right { gap: 4px; }
  .et-language-link { min-width: 38px; padding-inline: 9px; }
  .et-hero__card { border-radius: 26px; }
  .et-language-bar { top: 75px; max-width: calc(100% - 24px); }
  .et-language-bar a { min-width: 100px; }
  .four-eternity-legal .et-legal-card { padding: 19px 18px; border-radius: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .et-nav-link, .et-language-link { transition: none; }
}
