:root {
  --legal-bg: #f5f1ea;
  --legal-surface: rgba(255, 255, 255, 0.86);
  --legal-surface-strong: #ffffff;
  --legal-border: rgba(28, 43, 74, 0.12);
  --legal-text: #1d2940;
  --legal-muted: #586682;
  --legal-accent: #2d5fc3;
  --legal-accent-soft: rgba(45, 95, 195, 0.1);
  --legal-shadow: 0 30px 60px rgba(20, 34, 60, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--legal-text);
  background:
    radial-gradient(circle at top right, rgba(45, 95, 195, 0.16), transparent 28%),
    radial-gradient(circle at top left, rgba(215, 177, 116, 0.18), transparent 22%),
    linear-gradient(180deg, #f8f4ee 0%, var(--legal-bg) 100%);
}

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

.legal-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
  background: rgba(245, 241, 234, 0.88);
  border-bottom: 1px solid rgba(28, 43, 74, 0.08);
}

.legal-header-inner,
.legal-main,
.legal-footer-inner {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
}

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

.legal-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--legal-text);
  text-decoration: none;
}

.legal-brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(145deg, #111b2f 0%, #325bb2 100%);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.legal-brand-text strong,
.legal-brand-text small {
  display: block;
}

.legal-brand-text strong {
  font-size: 1rem;
}

.legal-brand-text small {
  margin-top: 3px;
  color: var(--legal-muted);
}

.legal-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.legal-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.legal-button:hover {
  transform: translateY(-1px);
}

.legal-button-primary {
  color: #fff;
  background: linear-gradient(135deg, #18315f 0%, #3369d9 100%);
  box-shadow: 0 14px 30px rgba(40, 84, 177, 0.24);
}

.legal-button-secondary {
  color: var(--legal-text);
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(28, 43, 74, 0.12);
}

.legal-main {
  padding: 56px 0 72px;
}

.legal-hero {
  margin-bottom: 28px;
}

.legal-kicker {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--legal-accent-soft);
  color: var(--legal-accent);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.76rem;
}

.legal-hero h1 {
  margin: 18px 0 14px;
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  line-height: 1.04;
}

.legal-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--legal-muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.legal-card {
  padding: 34px;
  border-radius: 28px;
  border: 1px solid var(--legal-border);
  background: linear-gradient(180deg, var(--legal-surface) 0%, var(--legal-surface-strong) 100%);
  box-shadow: var(--legal-shadow);
}

.legal-callout {
  margin: 0 0 28px;
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(215, 177, 116, 0.12);
  border: 1px solid rgba(215, 177, 116, 0.26);
  color: #5f4a24;
  line-height: 1.65;
}

.legal-section + .legal-section {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid rgba(28, 43, 74, 0.1);
}

.legal-section h2 {
  margin: 0 0 14px;
  font-size: 1.28rem;
}

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

.legal-section ul {
  margin: 0;
  padding-left: 22px;
}

.legal-footer {
  border-top: 1px solid rgba(28, 43, 74, 0.08);
  background: rgba(17, 27, 47, 0.95);
  color: rgba(255, 255, 255, 0.78);
}

.legal-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0 28px;
}

.legal-footer a {
  color: #dbe6ff;
}

@media (max-width: 760px) {
  .legal-header-inner,
  .legal-footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .legal-nav {
    width: 100%;
    flex-wrap: wrap;
  }

  .legal-button {
    width: 100%;
  }

  .legal-main {
    padding-top: 36px;
  }

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