:root {
  --ink: #211d31;
  --muted: #6f687e;
  --paper: #fffdfb;
  --pearl: #fbf8ff;
  --lilac: #ece7ff;
  --lilac-strong: #8c6ee6;
  --line: rgba(124, 103, 174, 0.18);
  --shadow: 0 24px 80px rgba(82, 58, 138, 0.14);
  --radius: 28px;
}
* { box-sizing: border-box; }
html { overflow-x: hidden; scroll-behavior: smooth; }
body {
  max-width: 100%;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 8% 12%, rgba(236, 231, 255, 0.95), transparent 32rem),
    radial-gradient(circle at 92% 8%, rgba(255, 248, 238, 0.9), transparent 28rem),
    linear-gradient(180deg, #fff 0%, var(--pearl) 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}
a { color: inherit; }
button { font: inherit; }
img { max-width: 100%; }
.hub-header,
.legal-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  padding: 16px clamp(18px, 4vw, 56px);
  background: rgba(255, 253, 251, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}
.hub-brand,
.legal-brand { min-width: 0; display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.hub-brand-mark { flex: 0 0 auto; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, #fff, var(--lilac)); border: 1px solid var(--line); font-weight: 900; color: #5b45c8; }
.hub-brand strong, .hub-brand small { display: block; }
.hub-brand small { color: var(--muted); font-size: 12px; }
.hub-nav, .legal-nav, .hub-footer, .legal-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; max-width: 100%; }
.hub-nav a, .legal-nav a, .hub-footer a, .legal-footer a, .panel-cta {
  min-height: 40px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,0.78);
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 8px 26px rgba(83, 65, 134, 0.06);
}
.hub-nav a.is-active { background: var(--ink); color: #fff; }
.hub-main { width: 100%; max-width: 100%; padding: clamp(18px, 3vw, 38px) clamp(16px, 4vw, 54px) clamp(20px, 3vw, 38px); }
.hub-hero { position: relative; width: min(1240px, 100%); margin: 0 auto; display: grid; justify-items: start; gap: clamp(18px, 2.6vw, 30px); text-align: left; }
.hub-copy { width: min(900px, 100%); padding-top: clamp(2px, 1vw, 10px); }
.hub-kicker { margin: 0 0 10px; color: #6b52cf; font-size: 12px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.hub-copy h1, .legal-hero h1 { margin: 0; font-size: clamp(40px, 6.8vw, 82px); line-height: 0.98; letter-spacing: -0.06em; }
.hub-copy p { max-width: 760px; margin: 14px 0 0; color: var(--muted); font-size: clamp(16px, 1.65vw, 20px); }
.legal-hero p { max-width: 760px; margin: 14px auto 0; color: var(--muted); font-size: clamp(16px, 1.65vw, 20px); }
.hero-frame { width: min(1120px, 100%); margin: 0; overflow: hidden; border: 1px solid rgba(124, 103, 174, 0.16); border-radius: clamp(22px, 3.4vw, 40px); background: linear-gradient(135deg, rgba(255,255,255,0.96), rgba(251,248,255,0.84)); box-shadow: 0 26px 78px rgba(82, 58, 138, 0.13); }
.hero-frame img { display: block; width: 100%; height: auto; max-height: min(66vh, 650px); object-fit: contain; object-position: center; }
.quick-links { width: min(1060px, 100%); margin: clamp(18px, 2.8vw, 30px) auto 0; display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: flex-start; gap: clamp(12px, 1.9vw, 20px); }
.icon-link { min-width: 0; width: min(132px, 100%); min-height: 0; display: grid; justify-items: center; align-content: start; gap: 8px; padding: 4px 6px; border: 0; border-radius: 18px; background: transparent; color: var(--ink); text-align: center; text-decoration: none; cursor: pointer; transition: transform .18s ease; }
.icon-link:hover, .icon-link:focus-visible { transform: translateY(-2px); outline: none; }
.icon-link:hover .icon-circle, .icon-link:focus-visible .icon-circle { border-color: rgba(140, 110, 230, 0.42); box-shadow: 0 16px 36px rgba(83, 65, 134, 0.16); }
.icon-circle { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 999px; background: radial-gradient(circle at 32% 24%, #fff 0 32%, var(--lilac) 72%, #f7f1ff 100%); border: 1px solid rgba(124, 103, 174, 0.22); color: #5b45c8; font-size: 22px; font-weight: 900; box-shadow: 0 10px 26px rgba(83, 65, 134, 0.1); transition: border-color .18s ease, box-shadow .18s ease; }
.icon-label { color: var(--ink); font-size: 0.91rem; font-weight: 900; line-height: 1.22; }
.hub-panel { position: fixed; inset: 0; z-index: 50; display: none; padding: 12px; }
.hub-panel.is-open { display: block; }
.panel-backdrop { position: absolute; inset: 0; background: rgba(33, 29, 49, 0.32); backdrop-filter: blur(8px); }
.panel-card { position: absolute; right: clamp(12px, 4vw, 48px); bottom: clamp(12px, 4vw, 48px); width: min(560px, calc(100% - 24px)); max-width: 100%; max-height: min(680px, calc(100dvh - 24px)); overflow: auto; padding: clamp(24px, 4vw, 42px); padding-top: clamp(42px, 5vw, 54px); border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,0.96); box-shadow: var(--shadow); }
.panel-card h2 { margin: 0 0 12px; font-size: clamp(28px, 4vw, 44px); line-height: 1.05; letter-spacing: -0.04em; }
.panel-text p { color: var(--muted); }
.panel-close { position: sticky; top: 0; float: right; width: 44px; height: 44px; margin: -34px -20px 0 8px; border: 0; border-radius: 999px; background: #fff; box-shadow: 0 8px 24px rgba(83, 65, 134, 0.12); font-size: 32px; line-height: 1; cursor: pointer; color: var(--muted); }
.panel-cta { display: inline-flex; align-items: center; justify-content: center; margin-top: 12px; background: var(--ink); color: #fff; }
.hub-footer, .legal-footer { padding: 26px clamp(18px, 4vw, 56px); border-top: 1px solid var(--line); color: var(--muted); justify-content: center; }
.hub-footer p, .legal-footer p { margin: 0 auto 0 0; color: var(--ink); font-weight: 900; }
.legal-main { max-width: 1060px; margin: 0 auto; padding: clamp(38px, 7vw, 86px) clamp(18px, 4vw, 32px); }
.legal-hero { position: relative; overflow: hidden; padding: clamp(34px, 6vw, 70px); border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.78); box-shadow: var(--shadow); }
.legal-hero::after { content: ""; position: absolute; width: 380px; height: 380px; right: -120px; top: -140px; border-radius: 50%; border: 46px solid rgba(236, 231, 255, .72); box-shadow: inset 0 0 0 32px rgba(255,255,255,.48); }
.legal-toc { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0; }
.legal-toc a { padding: 8px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--muted); font-size: 14px; font-weight: 800; }
.legal-card { margin: 18px 0; padding: clamp(22px, 4vw, 34px); border: 1px solid var(--line); border-radius: 24px; background: rgba(255,255,255,.82); box-shadow: 0 12px 48px rgba(82, 58, 138, 0.08); }
.legal-card h2 { margin: 0 0 12px; font-size: clamp(22px, 3vw, 32px); letter-spacing: -.035em; }
.legal-card p, .legal-card li { color: var(--muted); }
.legal-card ul { padding-left: 22px; }
.legal-note { border-left: 4px solid var(--lilac-strong); }
@media (max-width: 1080px) {
  .quick-links { width: min(760px, 100%); }
}
@media (max-width: 760px) {
  .hub-header, .legal-header { position: static; align-items: flex-start; flex-direction: column; }
  .hub-nav, .legal-nav { justify-content: flex-start; }
  .hub-main { padding-inline: 14px; }
  .hub-hero { justify-items: center; text-align: center; }
  .hub-copy p { margin-right: auto; margin-left: auto; }
  .hub-copy h1, .legal-hero h1 { font-size: clamp(34px, 12vw, 52px); }
  .hero-frame img { max-height: 46vh; }
  .quick-links { width: min(430px, 100%); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 10px; }
  .icon-link { width: 100%; border-radius: 18px; padding: 4px 6px; }
  .icon-circle { width: 50px; height: 50px; font-size: 21px; }
  .panel-card { right: 12px; bottom: 12px; left: 12px; width: auto; max-height: calc(100dvh - 24px); }
  .hub-footer p, .legal-footer p { width: 100%; margin: 0; text-align: center; }
}
@media (max-width: 430px) {
  .quick-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hub-nav a, .legal-nav a, .hub-footer a, .legal-footer a { padding-inline: 12px; }
}
@media (orientation: landscape) and (max-height: 520px) {
  .hub-main { padding-block: 18px; }
  .hero-frame img { max-height: 42vh; }
  .quick-links { width: min(680px, 100%); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .icon-link { width: 100%; grid-template-columns: auto minmax(0, 1fr); justify-items: start; align-items: center; text-align: left; }
  .icon-circle { width: 44px; height: 44px; }
}

.partner-page-picker {
  display: grid;
  gap: 14px;
}

.partner-page-picker p {
  margin: 0;
  color: var(--muted);
}

.partner-page-picker label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 900;
}

.partner-page-picker select {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  padding: 10px 12px;
  font: inherit;
  font-weight: 800;
}

.panel-cta:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

@media (max-width: 760px) {
  .hub-page {
    min-width: 0;
  }

  .hub-brand,
  .hub-copy,
  .hero-frame,
  .quick-links,
  .icon-link,
  .panel-card {
    max-width: 100%;
  }

  .panel-card {
    max-height: 88vh;
  }
}

@media (orientation: landscape) and (max-height: 520px) {
  .panel-card {
    max-height: 88vh;
  }
}
