:root {
  --bg: #0d1117;
  --panel: #131d2b;
  --text: #111827;
  --muted: #4b5563;
  --light: #ffffff;
  --border: #e5e7eb;
  --accent: #ff6b35;
  --accent-hover: #e85a24;
  --page: #f7f8fa;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--page);
  line-height: 1.65;
}

a {
  color: var(--accent-hover);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.legal-header {
  background: linear-gradient(135deg, var(--bg), var(--panel));
  color: var(--light);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.legal-header__inner,
.legal-main,
.legal-footer__inner {
  width: min(900px, calc(100% - 32px));
  margin: 0 auto;
}

.legal-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}

.legal-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--light);
  font-weight: 800;
  font-size: 20px;
}

.legal-brand:hover {
  text-decoration: none;
}

.legal-brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--accent);
  color: #fff;
}

.legal-back {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
}

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

.legal-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 12px 40px rgba(13, 17, 23, 0.08);
  padding: clamp(24px, 5vw, 52px);
}

.legal-eyebrow {
  margin: 0 0 10px;
  color: var(--accent-hover);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2 {
  font-family: Manrope, Inter, system-ui, sans-serif;
  line-height: 1.25;
}

h1 {
  margin: 0;
  font-size: clamp(28px, 5vw, 44px);
}

.legal-updated {
  margin: 12px 0 34px;
  color: var(--muted);
  font-size: 14px;
}

h2 {
  margin: 36px 0 12px;
  font-size: 21px;
}

p,
ul {
  margin: 0 0 14px;
}

ul {
  padding-left: 22px;
}

li + li {
  margin-top: 6px;
}

.legal-note {
  margin: 26px 0;
  padding: 18px 20px;
  border-left: 4px solid var(--accent);
  border-radius: 0 10px 10px 0;
  background: #fff7f2;
}

.legal-details {
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fafafa;
}

.legal-details p:last-child {
  margin-bottom: 0;
}

.legal-footer {
  border-top: 1px solid var(--border);
  background: #fff;
}

.legal-footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  color: var(--muted);
  font-size: 13px;
}

.legal-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

@media (max-width: 640px) {
  .legal-header__inner,
  .legal-footer__inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .legal-header__inner {
    gap: 8px;
  }

  .legal-main {
    padding-top: 24px;
    padding-bottom: 40px;
  }

  .legal-card {
    border-radius: 14px;
  }
}
