:root {
  --ink: #111827;
  --muted: #5b6472;
  --line: #d8dde5;
  --paper: #f7f8f6;
  --white: #ffffff;
  --taxi: #f4c430;
  --green: #12745b;
  --green-dark: #0d5140;
  --steel: #27313f;
  --shadow: 0 18px 50px rgba(17, 24, 39, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  border-bottom: 1px solid rgba(216, 221, 229, 0.78);
  background: rgba(255, 255, 255, 0.96);
}

.nav {
  width: min(1120px, calc(100% - 32px));
  min-height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  min-width: 0;
}

.brand-logo {
  width: 194px;
  height: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--green-dark);
}

.language-switch {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(17, 24, 39, 0.16);
  border-radius: 8px;
  padding: 0 10px;
  color: var(--ink);
  background: #fff8df;
  font-weight: 900;
}

.nav-links a.language-switch:hover {
  border-color: rgba(184, 137, 0, 0.42);
  color: var(--ink);
}

.button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  padding: 0 16px;
  cursor: pointer;
  color: var(--white);
  background: var(--green);
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 12px 30px rgba(18, 116, 91, 0.18);
}

.legal-hero {
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.legal-hero-inner,
.legal-layout,
.footer-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.legal-hero-inner {
  padding: 54px 0 38px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 8px;
  padding: 0 10px;
  color: var(--green-dark);
  background: #dff4ee;
  font-size: 13px;
  font-weight: 800;
}

h1 {
  margin: 16px 0 10px;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: 0;
}

.lead {
  max-width: 780px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.legal-layout {
  padding: 42px 0 70px;
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 30px;
  align-items: start;
}

.side-nav {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 8px;
}

.side-nav a {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--steel);
  background: var(--white);
  font-size: 14px;
  font-weight: 800;
}

.side-nav a.active,
.side-nav a:hover {
  border-color: rgba(18, 116, 91, 0.34);
  color: var(--green-dark);
  background: #f3fbf8;
}

.legal-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.legal-card h2 {
  margin: 30px 0 10px;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.18;
  letter-spacing: 0;
}

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

.legal-card p {
  margin: 0 0 14px;
  color: var(--steel);
}

.legal-card ul {
  margin: 0 0 18px;
  padding-left: 22px;
  color: var(--steel);
}

.legal-card li {
  margin-bottom: 8px;
}

.notice-box {
  margin: 18px 0;
  border: 1px solid #f0d48a;
  border-radius: 8px;
  padding: 14px;
  color: #4f3d0a;
  background: #fff8df;
}

.info-table {
  width: 100%;
  margin: 18px 0;
  border-collapse: collapse;
}

.info-table th,
.info-table td {
  border: 1px solid var(--line);
  padding: 12px;
  text-align: left;
  vertical-align: top;
}

.info-table th {
  width: 32%;
  color: var(--steel);
  background: #eef2f6;
}

.site-footer {
  padding: 30px 0;
  color: #d9e0e8;
  background: #111827;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  font-size: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-links a {
  color: #f4c430;
}

@media (max-width: 860px) {
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .side-nav {
    position: static;
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .brand-logo {
    width: 44px;
  }

  .nav-links a:not(.button):not(.language-switch) {
    display: none;
  }

  .language-switch {
    min-height: 40px;
    padding: 0 9px;
    font-size: 13px;
  }

  .legal-card {
    padding: 20px;
  }

  .side-nav {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
  }
}
