/* terms.css - identical styling to privacy-policy.css */
:root {
  --red: #ff2b2b;
  --red-dark: #e11f1f;
  --white: #ffffff;
  --black: #0b0b0b;
  --ink: #d9d9d9;
  --muted: rgba(255, 255, 255, 0.72);
  --panel: rgba(255, 255, 255, 0.06);
  --panel2: rgba(255, 255, 255, 0.09);
  --stroke: rgba(255, 255, 255, 0.14);
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
  --radius-xl: 34px;
  --radius-lg: 22px;
  --radius-md: 16px;

  --heading-font: "Cinzel", Georgia, "Times New Roman", serif;
  --body-font:
    "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;

  --grad-hot: linear-gradient(90deg, #ff2b2b, #ff7a7a, #ff2b2b);
  --max: 1180px;
  --topbar-h: 78px;
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}

body {
  margin: 0;
  color: var(--white);
  background:
    radial-gradient(
      1200px 600px at 20% 0%,
      rgba(255, 43, 43, 0.18),
      transparent 60%
    ),
    radial-gradient(
      900px 500px at 90% 20%,
      rgba(255, 122, 122, 0.12),
      transparent 55%
    ),
    linear-gradient(180deg, #0b0b0b, #070707 60%, #050505);
  font-family: var(--body-font);
  line-height: 1.6;
}

a {
  color: inherit;
}

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

/* TOPBAR */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--topbar-h);
  backdrop-filter: blur(10px);
  background: rgba(0, 0, 0, 0.44);
  border-bottom: 1px solid var(--stroke);
}

.topbarInner {
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brandLogo {
  height: 42px;
  width: auto;
  display: block;
  object-fit: contain;
}

/* BUTTONS */
.btn {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 700;
  font-family: var(--body-font);
  color: var(--black);
  background: var(--white);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
  transition:
    transform 0.16s ease,
    opacity 0.16s ease;
}

.btn:hover {
  transform: translateY(-1px);
  opacity: 0.96;
}

.btn.ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--stroke);
  box-shadow: none;
}

.btn.tiny {
  padding: 7px 10px;
  font-size: 12px;
}

/* HERO */
.hero {
  padding: 46px 0 22px;
}

.heroInner {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 22px;
  align-items: start;
}

.heroTitle {
  margin: 0 0 12px;
  font-family: var(--heading-font);
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.08;
  letter-spacing: 0.02em;
}

.grad {
  background: var(--grad-hot);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.heroLead {
  margin: 0 0 18px;
  color: var(--muted);
  max-width: 68ch;
}

.heroMeta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.metaPill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
}

.metaLabel {
  opacity: 0.72;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.metaValue {
  font-weight: 700;
  font-size: 13px;
}

.link {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
}

.heroCard {
  border-radius: var(--radius-xl);
  border: 1px solid var(--stroke);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0.04)
  );
  box-shadow: var(--shadow);
  padding: 18px 18px 14px;
}

.cardTitle {
  margin: 0 0 10px;
  font-family: var(--heading-font);
  letter-spacing: 0.02em;
  font-size: 18px;
}

.cardList {
  margin: 0;
  padding-left: 18px;
  color: var(--ink);
}

.cardNote {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--stroke);
  color: var(--muted);
  font-size: 13px;
}

/* LAYOUT */
.main {
  padding: 18px 0 56px;
}

.layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 18px;
  align-items: start;
}

/* TOC */
.tocBox {
  position: sticky;
  top: calc(var(--topbar-h) + 16px);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.04);
  padding: 14px;
}

.tocHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.tocTitle {
  font-weight: 800;
  letter-spacing: 0.02em;
}

.tocNav {
  display: grid;
  gap: 8px;
}

.tocLink {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.82);
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 8px 10px;
  transition:
    background 0.16s ease,
    border-color 0.16s ease,
    transform 0.16s ease;
}

.tocLink:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.tocLink.active {
  background: rgba(255, 43, 43, 0.12);
  border-color: rgba(255, 43, 43, 0.28);
}

.badge {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.dot {
  width: 10px;
  height: 10px;
  margin-top: 6px;
  border-radius: 999px;
  background: var(--grad-hot);
}

/* PAPER */
.paper {
  border: 1px solid var(--stroke);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: var(--shadow);
  padding: 22px 22px 16px;
}

.section {
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}
.section:first-child {
  border-top: 0;
  padding-top: 0;
}

.h2 {
  margin: 0 0 10px;
  font-family: var(--heading-font);
  letter-spacing: 0.02em;
  font-size: 22px;
}

.h3 {
  margin: 14px 0 8px;
  font-size: 15px;
  letter-spacing: 0.01em;
}

p,
li {
  color: rgba(255, 255, 255, 0.82);
}

.note {
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 43, 43, 0.24);
  background: rgba(255, 43, 43, 0.08);
  color: rgba(255, 255, 255, 0.86);
}

.contactBox {
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-lg);
  padding: 14px;
}

.contactLine {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.04);
}

.contactSmall {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.footer {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.fineprint {
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
}

/* REVEAL */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  filter: blur(6px);
  transition:
    opacity 650ms ease,
    transform 650ms ease,
    filter 650ms ease;
  transition-delay: var(--d, 0ms);
  will-change: opacity, transform, filter;
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}
.reveal.pop {
  transform: translateY(14px) scale(0.98);
}
.reveal.pop.in {
  transform: translateY(0) scale(1);
}

/* TOAST */
.toast {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.78);
  border: 1px solid var(--stroke);
  border-radius: 999px;
  padding: 10px 14px;
  color: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(-2px);
}

/* RESPONSIVE */
@media (max-width: 980px) {
  .heroInner {
    grid-template-columns: 1fr;
  }
  .layout {
    grid-template-columns: 1fr;
  }
  .tocBox {
    position: relative;
    top: 0;
  }
}
