/* ===== Variables ===== */
:root {
  --yellow: #fbb903;
  --yellow-dark: #d99e00;
  --navy: #12213b;
  --navy-light: #1c3057;
  --ink: #12213b;
  --muted: #5a6b86;
  --bg: #ffffff;
  --bg-soft: #f5f7fb;
  --border: #e6ebf3;
  --white: #ffffff;
  --radius: 18px;
  --shadow: 0 20px 45px -20px rgba(18, 33, 59, 0.35);
  --max: 900px;
  --font-head: "Poppins", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; background: var(--bg-soft); }

body {
  font-family: var(--font-body);
  color: var(--ink);
  line-height: 1.6;
  background: var(--bg-soft);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 12px 0;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  box-shadow: 0 6px 24px -16px rgba(18, 33, 59, 0.4);
}
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--max); width: 100%;
}
.logo { display: flex; align-items: center; gap: 14px; }
.logo__img { height: 56px; width: auto; }
.logo__tag {
  font-family: var(--font-head); font-weight: 700; font-size: 12px; line-height: 1.15;
  text-transform: uppercase; letter-spacing: 0.5px;
  color: var(--navy); padding-left: 12px; border-left: 2px solid var(--yellow);
}
.back-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 600; font-size: 14px;
  color: var(--navy);
  padding: 10px 18px; border-radius: 999px;
  border: 1px solid var(--border);
  transition: all 0.25s ease;
}
.back-link:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }
.back-link svg { width: 18px; height: 18px; }

/* ===== Legal content ===== */
.legal { padding: 130px 0 80px; }

.legal__hero { text-align: center; max-width: 640px; margin: 0 auto 42px; }
.legal__eyebrow {
  display: inline-block;
  font-family: var(--font-head); font-weight: 700; font-size: 13px;
  text-transform: uppercase; letter-spacing: 1px;
  color: var(--yellow-dark);
  background: rgba(251, 185, 3, 0.12);
  padding: 6px 16px; border-radius: 999px; margin-bottom: 18px;
}
.legal__title {
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(2rem, 5vw, 2.9rem); line-height: 1.1;
  color: var(--navy); margin-bottom: 16px;
}
.legal__lead { color: var(--muted); font-size: 1.05rem; }

.legal__card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(28px, 5vw, 56px);
}

.legal__section { padding: 26px 0; border-bottom: 1px solid var(--border); }
.legal__section:first-child { padding-top: 0; }
.legal__section:last-child { padding-bottom: 0; border-bottom: none; }

.legal__section h2 {
  font-family: var(--font-head); font-weight: 700;
  font-size: 1.25rem; color: var(--navy); margin-bottom: 14px;
  position: relative; padding-left: 16px;
}
.legal__section h2::before {
  content: ""; position: absolute; left: 0; top: 4px; bottom: 4px;
  width: 4px; border-radius: 4px; background: var(--yellow);
}
.legal__section p { color: var(--muted); margin-bottom: 12px; }
.legal__section p:last-child { margin-bottom: 0; }
.legal__section strong { color: var(--ink); font-weight: 600; }
.legal__section a {
  color: var(--navy); font-weight: 600;
  border-bottom: 1px solid var(--yellow); transition: color 0.2s ease;
}
.legal__section a:hover { color: var(--yellow-dark); }

/* ===== Footer ===== */
.footer { background: var(--navy); color: rgba(255, 255, 255, 0.82); padding: 30px 0; }
.footer__bottom {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; font-size: 0.9rem;
}
.footer__legal { display: flex; gap: 22px; }
.footer__legal a { color: rgba(255, 255, 255, 0.82); transition: color 0.2s ease; }
.footer__legal a:hover { color: var(--yellow); }
.footer__legal a[aria-current="page"] { color: var(--yellow); }

/* ===== Responsive ===== */
@media (max-width: 640px) {
  .logo__tag { display: none; }
  .logo__img { height: 46px; }
  .back-link { padding: 9px 14px; font-size: 13px; }
  .legal { padding: 110px 0 56px; }
  .legal__card { padding: 24px 20px; }
  .footer__bottom { flex-direction: column; text-align: center; gap: 12px; }
  .footer__legal { justify-content: center; flex-wrap: wrap; gap: 8px 20px; }
}
