:root {
  --piter-red: #e10f16;
  --piter-red-dark: #b70b10;
  --piter-black: #111214;
  --piter-graphite: #25282c;
  --piter-muted: #61666d;
  --piter-line: #e3e5e8;
  --piter-soft: #f5f6f7;
  --piter-white: #ffffff;
  --content-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--piter-black);
  background: var(--piter-white);
  font-family: Inter, Geist, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--piter-red-dark);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--piter-red);
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  color: var(--piter-white);
  background: var(--piter-black);
  border-radius: 6px;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(17, 18, 20, 0.08);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}

.header-inner {
  width: min(calc(100% - 40px), var(--content-width));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand img {
  width: 126px;
  height: auto;
  display: block;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.92rem;
  font-weight: 650;
}

.header-nav a {
  color: var(--piter-graphite);
  text-decoration: none;
}

.header-nav a[aria-current="page"] {
  color: var(--piter-red);
}

.back-home {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  color: var(--piter-white) !important;
  background: var(--piter-black);
  border-radius: 999px;
}

.legal-hero {
  position: relative;
  overflow: hidden;
  color: var(--piter-white);
  background:
    radial-gradient(circle at 82% 20%, rgba(225, 15, 22, 0.26), transparent 33%),
    linear-gradient(135deg, #111214 0%, #202327 100%);
}

.legal-hero::after {
  content: "";
  position: absolute;
  right: -75px;
  bottom: -110px;
  width: 320px;
  height: 320px;
  border: 55px solid rgba(255, 255, 255, 0.025);
  border-radius: 50%;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 40px), var(--content-width));
  margin: 0 auto;
  padding: 82px 0 72px;
}

.eyebrow {
  margin: 0 0 16px;
  color: #ff7b80;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.legal-hero h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(2.35rem, 5vw, 4.7rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.hero-summary {
  max-width: 760px;
  margin: 24px 0 0;
  color: #d8dadd;
  font-size: clamp(1rem, 1.7vw, 1.18rem);
}

.hero-meta {
  margin: 28px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-meta span {
  padding: 7px 11px;
  color: #eff0f1;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.82rem;
}

.legal-layout {
  width: min(calc(100% - 40px), var(--content-width));
  margin: 0 auto;
  padding: 54px 0 88px;
  display: grid;
  grid-template-columns: 265px minmax(0, 1fr);
  gap: 58px;
  align-items: start;
}

.legal-nav {
  position: sticky;
  top: 102px;
  padding: 22px;
  border: 1px solid var(--piter-line);
  border-radius: 14px;
  background: var(--piter-soft);
}

.legal-nav strong {
  display: block;
  margin-bottom: 11px;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-nav ol {
  margin: 0;
  padding-left: 20px;
}

.legal-nav li + li {
  margin-top: 7px;
}

.legal-nav a {
  color: var(--piter-muted);
  font-size: 0.88rem;
  text-decoration: none;
}

.legal-nav a:hover {
  color: var(--piter-red);
}

.legal-content {
  min-width: 0;
}

.legal-intro {
  margin: 0 0 44px;
  padding: 24px 26px;
  border-left: 4px solid var(--piter-red);
  border-radius: 0 12px 12px 0;
  background: #fff5f5;
}

.legal-intro p {
  margin: 0;
}

.legal-section {
  scroll-margin-top: 110px;
  padding: 0 0 36px;
  margin: 0 0 38px;
  border-bottom: 1px solid var(--piter-line);
}

.legal-section:last-child {
  margin-bottom: 0;
  border-bottom: 0;
}

.legal-section h2 {
  margin: 0 0 16px;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.legal-section h3 {
  margin: 25px 0 9px;
  font-size: 1.02rem;
}

.legal-section p {
  margin: 0 0 14px;
  color: #383c41;
}

.legal-section ul,
.legal-section ol {
  margin: 12px 0 18px;
  padding-left: 23px;
  color: #383c41;
}

.legal-section li + li {
  margin-top: 8px;
}

.legal-section strong {
  color: var(--piter-black);
}

.info-card {
  margin-top: 20px;
  padding: 20px 22px;
  border: 1px solid var(--piter-line);
  border-radius: 12px;
  background: var(--piter-soft);
}

.info-card p:last-child,
.info-card ul:last-child {
  margin-bottom: 0;
}

.contact-card {
  padding: 28px;
  color: var(--piter-white);
  background: var(--piter-black);
  border-radius: 16px;
}

.contact-card p,
.contact-card strong {
  color: var(--piter-white);
}

.contact-card a {
  color: #ff777c;
}

.legal-footer {
  color: #c9cbce;
  background: #111214;
}

.footer-inner {
  width: min(calc(100% - 40px), var(--content-width));
  min-height: 170px;
  margin: 0 auto;
  padding: 36px 0;
  display: grid;
  grid-template-columns: 1.2fr 1fr auto;
  gap: 38px;
  align-items: start;
}

.footer-brand img {
  width: 116px;
  height: auto;
}

.footer-brand p {
  max-width: 430px;
  margin: 13px 0 0;
  color: #9fa3a8;
  font-size: 0.88rem;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-links a {
  color: #dfe1e3;
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-company {
  display: grid;
  gap: 4px;
  text-align: right;
  font-size: 0.82rem;
}

.footer-company strong {
  color: var(--piter-white);
}

@media (max-width: 900px) {
  .header-nav > a:not(.back-home) {
    display: none;
  }

  .legal-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .legal-nav {
    position: static;
  }

  .legal-nav ol {
    columns: 2;
    column-gap: 30px;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .footer-company {
    grid-column: 1 / -1;
    text-align: left;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 15px;
  }

  .header-inner,
  .hero-inner,
  .legal-layout,
  .footer-inner {
    width: min(calc(100% - 28px), var(--content-width));
  }

  .header-inner {
    min-height: 68px;
  }

  .brand img {
    width: 108px;
  }

  .back-home {
    padding: 8px 12px;
    font-size: 0.82rem;
  }

  .hero-inner {
    padding: 58px 0 52px;
  }

  .legal-layout {
    padding: 36px 0 58px;
  }

  .legal-nav ol {
    columns: 1;
  }

  .legal-intro,
  .contact-card {
    padding: 20px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .footer-company {
    grid-column: auto;
  }
}

@media print {
  .site-header,
  .legal-nav,
  .legal-footer {
    display: none;
  }

  .legal-hero {
    color: #000;
    background: #fff;
  }

  .hero-inner {
    padding: 24px 0;
  }

  .eyebrow,
  .hero-summary {
    color: #333;
  }

  .hero-meta span {
    color: #222;
    border-color: #bbb;
  }

  .legal-layout {
    display: block;
    padding-top: 12px;
  }

  .legal-section {
    break-inside: avoid;
  }
}
