@font-face {
  font-family: "Rubik";
  src: url("../assets/fonts/Rubik-VariableFont_wght.ttf") format("truetype-variations");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Rubik";
  src: url("../assets/fonts/Rubik-Italic-VariableFont_wght.ttf") format("truetype-variations");
  font-weight: 300 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --panel: rgba(255, 255, 255, 0.82);
  --panel-strong: #ffffff;
  --text: #25283a;
  --muted: #666b85;
  --accent: #667eea;
  --accent-strong: #764ba2;
  --line: rgba(102, 126, 234, 0.14);
  --shadow: 0 22px 60px rgba(56, 67, 128, 0.16);
  --radius: 28px;
  --max: 980px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Rubik", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(102, 126, 234, 0.18), transparent 24%),
    radial-gradient(circle at top right, rgba(118, 75, 162, 0.16), transparent 24%),
    linear-gradient(180deg, #f8f9ff 0%, #eef2ff 52%, #f6f7fd 100%);
}

.legal-shell {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.legal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
}

.legal-header a {
  color: var(--accent-strong);
  text-decoration: none;
  font-weight: 500;
}

.legal-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  padding: 28px;
}

.legal-card h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 5vw, 3.4rem);
  letter-spacing: -0.04em;
  line-height: 0.96;
}

.legal-card p,
.legal-card li {
  color: var(--muted);
  line-height: 1.7;
}

.legal-card h2 {
  margin-top: 28px;
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.legal-card ul {
  padding-left: 20px;
}

.legal-meta {
  display: grid;
  gap: 6px;
  margin: 18px 0 12px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--panel-strong);
}

@media (max-width: 720px) {
  .legal-header {
    display: grid;
  }

  .legal-card {
    padding: 20px;
    border-radius: 22px;
  }
}
