:root {
  --brand: #128376;
  --brand-dark: #005f55;
  --brand-soft: #dff3ef;
  --ink: #081f1c;
  --muted: #54645f;
  --line: #d4e1dd;
  --surface: #ffffff;
  --canvas: #f6faf9;
  --radius: 10px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(15, 118, 110, 0.07) 0 1px, transparent 1px 100%) 0 0 / 48px 48px,
    linear-gradient(0deg, rgba(15, 118, 110, 0.05) 0 1px, transparent 1px 100%) 0 0 / 48px 48px,
    var(--canvas);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

.legal-page {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 48px;
}

.legal-header,
.legal-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 52px rgba(24, 54, 49, 0.08);
}

.legal-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  margin-bottom: 16px;
  padding: 18px 20px;
}

.legal-logo {
  width: 58px;
  height: 58px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  line-height: 1.15;
}

h1 {
  font-size: clamp(30px, 5vw, 48px);
}

h2 {
  margin-top: 30px;
  font-size: 22px;
}

p,
li {
  color: var(--muted);
}

a {
  color: var(--brand-dark);
  font-weight: 800;
}

.home-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  background: var(--surface);
  text-decoration: none;
}

.legal-card {
  padding: clamp(22px, 4vw, 42px);
}

.legal-card > :first-child {
  margin-top: 0;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0;
}

.info-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--brand-soft);
}

.info-box span {
  display: block;
  color: var(--brand-dark);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.info-box strong {
  display: block;
  margin-top: 4px;
}

.legal-footer {
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

@media (max-width: 720px) {
  .legal-page {
    width: min(100% - 20px, 980px);
    padding-top: 10px;
  }

  .legal-header {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .home-link {
    width: 100%;
    justify-content: center;
  }
}
