:root {
  color-scheme: dark light;
  --bg: radial-gradient(circle at top, rgba(56, 189, 248, 0.14), transparent 65%), #050914;
  --surface: rgba(15, 23, 42, 0.85);
  --panel: rgba(30, 41, 59, 0.92);
  --accent: #38bdf8;
  --accent-strong: #0ea5e9;
  --text: #e2e8f0;
  --muted: #8da2c2;
  --border: rgba(148, 163, 184, 0.28);
  --shadow: 0 22px 60px rgba(8, 47, 73, 0.4);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --font-body: 'Inter', system-ui, -apple-system, Segoe UI, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  font-family: var(--font-body);
  color: var(--text);
  line-height: 1.7;
}

a {
  color: var(--accent);
}

a:hover,
a:focus-visible {
  color: var(--accent-strong);
}

.terms-shell {
  width: min(880px, 92vw);
  margin: 0 auto;
  padding: clamp(1.75rem, 5vw, 3rem) 0 3.5rem;
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.5rem);
}

.terms-hero {
  display: grid;
  gap: clamp(1rem, 3vw, 1.75rem);
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.25rem);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.terms-hero__brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.terms-hero__brand img {
  width: clamp(110px, 20vw, 160px);
}

.terms-hero h1 {
  margin: 0;
  font-size: clamp(1.9rem, 5vw, 2.4rem);
}

.terms-hero p {
  margin: 0;
  color: var(--muted);
}

.terms-hero__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.terms-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.terms-link:hover,
.terms-link:focus-visible {
  background: rgba(56, 189, 248, 0.18);
  border-color: rgba(56, 189, 248, 0.45);
  color: #04111b;
}

.terms-content {
  background: var(--panel);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: clamp(1.75rem, 5vw, 2.75rem);
  display: grid;
  gap: 1.75rem;
}

.terms-content h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.2rem, 3vw, 1.5rem);
}

.terms-content p {
  margin: 0 0 1rem;
}

.terms-content ul,
.terms-content ol {
  margin: 0 0 1.25rem;
  padding-left: 1.25rem;
  color: var(--muted);
}

.terms-content li + li {
  margin-top: 0.5rem;
}

.terms-footer {
  font-size: 0.9rem;
  color: var(--muted);
}

@media (max-width: 640px) {
  .terms-content {
    padding: 1.5rem;
  }

  .terms-hero {
    padding: 1.5rem;
  }
}
