:root {
  color-scheme: light;
  --bg: #f9fafb;
  --text: #111827;
  --muted: #64748b;
  --muted-strong: #334155;
  --line: #e5e7eb;
  --line-soft: #f3f4f6;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: #ffffff;
  --surface-muted: #f9fafb;
  --header-bg: rgba(255, 255, 255, 0.8);
  --header-border: rgba(255, 255, 255, 0.2);
  --hover-bg: #f3f4f6;
  --secondary-text: #374151;
  --title-from: #111827;
  --modal-overlay: rgba(15, 23, 42, 0.56);
  --accent-ring: #99f6e4;
  --accent-ring-soft: #ccfbf1;
  --accent: #14b8a6;
  --accent-hover: #0d9488;
  --accent-strong: #0f766e;
  --accent-soft: #f0fdfa;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 10px 40px rgba(0, 0, 0, 0.08);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #020617;
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-strong: #cbd5e1;
  --line: #334155;
  --line-soft: rgba(51, 65, 85, 0.58);
  --surface: rgba(15, 23, 42, 0.78);
  --surface-strong: #0f172a;
  --surface-muted: #111827;
  --header-bg: rgba(15, 23, 42, 0.82);
  --header-border: rgba(51, 65, 85, 0.62);
  --hover-bg: rgba(30, 41, 59, 0.84);
  --secondary-text: #e2e8f0;
  --title-from: #f8fafc;
  --modal-overlay: rgba(2, 6, 23, 0.72);
  --accent-ring: rgba(45, 212, 191, 0.32);
  --accent-ring-soft: rgba(20, 184, 166, 0.24);
  --accent: #2dd4bf;
  --accent-hover: #14b8a6;
  --accent-strong: #5eead4;
  --accent-soft: rgba(20, 184, 166, 0.16);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.32);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.28), 0 1px 2px rgba(0, 0, 0, 0.22);
  --shadow-hover: 0 10px 40px rgba(0, 0, 0, 0.36);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(at 40% 20%, rgba(20, 184, 166, 0.12) 0, transparent 50%),
    radial-gradient(at 80% 0%, rgba(6, 182, 212, 0.08) 0, transparent 50%),
    radial-gradient(at 0% 50%, rgba(20, 184, 166, 0.08) 0, transparent 50%),
    var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.locked {
  overflow: hidden;
}

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

.site-header {
  position: sticky;
  top: 14px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(1080px, calc(100% - 32px));
  margin: 14px auto 0;
  border: 1px solid var(--header-border);
  border-radius: 24px;
  background: var(--header-bg);
  box-shadow: var(--shadow);
  padding: 10px 12px 10px 14px;
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 0 20px rgba(20, 184, 166, 0.25);
}

.brand span {
  display: grid;
  gap: 2px;
}

.brand small {
  color: var(--muted);
}

.header-actions,
.hero-actions,
.final-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.text-link {
  color: var(--muted);
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 9px 12px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.text-link:hover {
  background: var(--hover-bg);
  color: var(--text);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-strong);
  color: var(--muted-strong);
  padding: 0 12px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 650;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.theme-toggle:hover {
  border-color: var(--accent-ring);
  background: var(--hover-bg);
  color: var(--text);
}

.theme-toggle-dot {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #facc15 0 50%, var(--accent) 50% 100%);
  box-shadow: 0 0 18px rgba(20, 184, 166, 0.35);
}

:root[data-theme="dark"] .theme-toggle-dot {
  background: linear-gradient(135deg, #0f172a 0 50%, var(--accent) 50% 100%);
}

.header-cta,
.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 14px;
  font-size: 0.92rem;
  font-weight: 650;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.header-cta,
.primary-button {
  border: 1px solid transparent;
  background: linear-gradient(90deg, var(--accent), var(--accent-hover));
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(20, 184, 166, 0.25);
  padding: 0 18px;
}

.header-cta:hover,
.primary-button:hover {
  background: linear-gradient(90deg, var(--accent-hover), var(--accent-strong));
  box-shadow: 0 12px 26px rgba(20, 184, 166, 0.3);
  transform: translateY(-1px);
}

.header-cta {
  min-height: 38px;
  padding: 0 16px;
}

.secondary-button {
  border: 1px solid var(--line);
  background: var(--surface-strong);
  color: var(--secondary-text);
  padding: 0 18px;
  box-shadow: var(--shadow-sm);
}

.secondary-button:hover {
  border-color: var(--line);
  background: var(--surface-muted);
}

main {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
}

.disclaimer-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.72fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  min-height: 620px;
  padding: 84px 0 42px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 18px rgba(20, 184, 166, 0.7);
  content: "";
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -0.045em;
}

h1 {
  max-width: 820px;
  background: linear-gradient(135deg, var(--title-from), var(--accent-strong) 62%, var(--accent));
  background-clip: text;
  color: transparent;
  font-size: clamp(2.65rem, 6vw, 5.4rem);
  line-height: 0.98;
}

h2 {
  font-size: clamp(1.55rem, 3vw, 2.35rem);
}

.hero-text {
  max-width: 760px;
  margin: 24px 0 0;
  color: var(--muted-strong);
  font-size: clamp(1.02rem, 1.5vw, 1.16rem);
  line-height: 1.85;
}

.hero-actions {
  margin-top: 34px;
}

.notice-panel,
.notice-grid article,
.policy-list article,
.risk-card {
  border: 1px solid var(--line-soft);
  border-radius: 24px;
  background: var(--surface-strong);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(18px);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.notice-grid article:hover,
.policy-list article:hover {
  border-color: var(--line);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.notice-panel {
  display: grid;
  gap: 16px;
  padding: clamp(20px, 3vw, 28px);
}

.notice-panel strong {
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}

.notice-panel ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted-strong);
  line-height: 1.75;
}

.notice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 12px 0 42px;
}

.notice-grid article,
.policy-list article {
  display: grid;
  gap: 14px;
  padding: 22px;
}

.notice-grid span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--accent-ring);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 950;
}

.notice-grid h2 {
  font-size: clamp(1.25rem, 2vw, 1.55rem);
}

.notice-grid p,
.policy-list p,
.risk-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.82;
}

.policy-section {
  padding: 44px 0;
  scroll-margin-top: 100px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.policy-list {
  display: grid;
  gap: 14px;
}

.policy-list h3 {
  font-size: 1.16rem;
  letter-spacing: -0.025em;
}

.risk-card {
  display: grid;
  gap: 14px;
  border-left: 4px solid var(--accent);
  padding: clamp(20px, 3vw, 28px);
}

.final-actions {
  margin-top: 18px;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding: 26px 16px 34px;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer a:hover {
  color: var(--accent-strong);
}

.consent-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 20% 10%, rgba(20, 184, 166, 0.24), transparent 28rem),
    var(--modal-overlay);
  padding: 20px;
  backdrop-filter: blur(18px);
}

.consent-modal[hidden] {
  display: none;
}

.consent-card {
  display: grid;
  gap: 18px;
  width: min(680px, 100%);
  max-height: min(760px, calc(100vh - 40px));
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface-strong);
  box-shadow: 0 25px 50px rgba(15, 23, 42, 0.25);
  padding: clamp(22px, 4vw, 34px);
}

.consent-scroll {
  display: grid;
  gap: 12px;
  max-height: 280px;
  overflow-y: auto;
  border: 1px solid var(--accent-ring-soft);
  border-radius: 16px;
  background: var(--accent-soft);
  padding: 16px;
}

.consent-scroll p {
  margin: 0;
  color: var(--muted-strong);
  line-height: 1.78;
}

.consent-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text);
  font-weight: 800;
  line-height: 1.55;
}

.consent-check input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--accent);
}

.consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.consent-actions .primary-button:disabled {
  cursor: not-allowed;
  filter: grayscale(0.8);
  opacity: 0.5;
  transform: none;
}

@media (max-width: 900px) {
  .disclaimer-hero,
  .notice-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .site-header {
    align-items: flex-start;
    border-radius: 20px;
    flex-direction: column;
  }

  .header-actions,
  .hero-actions,
  .final-actions,
  .consent-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .brand small {
    display: none;
  }

  h1 {
    font-size: clamp(2.5rem, 15vw, 4.2rem);
  }

  .primary-button,
  .secondary-button {
    width: 100%;
  }
}
