:root {
  --ink: var(--t9);
  --body: var(--t6);
  --muted: var(--t5);
  --line: var(--t1);
  --canvas: var(--t0);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 15px/1.7 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
}

.company-name {
  white-space: nowrap;
}

.wrap {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 24px;
}

.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 90px;
}

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  width: 116px;
  height: 60px;
  overflow: hidden;
}

.brand img {
  display: block;
  flex-shrink: 0;
  width: 100%;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  border-color: var(--red);
  color: var(--red);
}

.back-link {
  gap: 8px;
  padding-inline: 15px;
}

.back-link span {
  font-size: 17px;
  line-height: 1;
}

.lang-link {
  width: 44px;
  flex: 0 0 44px;
}

.site-nav .lang-link {
  border-color: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.site-nav .lang-link:is(:hover, :focus-visible) {
  border-color: transparent;
  background: var(--canvas);
  color: var(--red);
}

.legal-main {
  width: min(calc(100% - 48px), 1000px);
  margin-inline: auto;
  padding-block: clamp(40px, 5vw, 64px) 64px;
  flex: 1 0 auto;
}

.legal-intro {
  margin-bottom: 28px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(34px, 4.5vw, 48px);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.13;
}

.legal-basis {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.legal-panel {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--red);
  border-radius: var(--r);
}

.legal-section {
  display: grid;
  grid-template-columns: minmax(0, 190px) minmax(0, 1fr);
  gap: 34px;
  padding: 30px 36px;
}

.legal-section + .legal-section {
  border-top: 1px solid var(--line);
}

.legal-section h2 {
  margin: 0;
  color: var(--t8);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
}

.legal-copy {
  min-width: 0;
  color: var(--body);
  line-height: 1.7;
}

.legal-copy p {
  margin: 0;
}

.legal-copy p + p {
  margin-top: 16px;
}

.legal-copy address {
  font-style: normal;
}

.legal-copy a {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
  transition: color 0.2s;
}

.legal-copy a:hover,
.legal-copy a:focus-visible {
  color: var(--red-d);
}

.legal-update {
  margin: 0;
  padding: 15px 36px;
  border-top: 1px solid var(--line);
  background: var(--canvas);
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.site-footer {
  margin-top: auto;
  padding-block: 20px;
  background: var(--ink);
  color: var(--t3);
  font-size: 13px;
}

.site-footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.site-footer nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.site-footer a:hover,
.site-footer a:focus-visible,
.site-footer a[aria-current="page"] {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 720px) {
  .legal-section {
    display: block;
    padding: 24px;
  }

  .legal-section h2 {
    margin-bottom: 10px;
  }

  .legal-main {
    width: min(calc(100% - 32px), 1000px);
    padding-block: 36px 48px;
  }
}

@media (max-width: 640px) {
  .site-header .wrap {
    min-height: 76px;
    gap: 10px;
  }

  .brand {
    width: 92px;
    height: 48px;
  }

  .site-nav {
    gap: 8px;
  }

  .site-nav a {
    font-size: 12px;
  }

  .back-link {
    gap: 5px;
    padding-inline: 9px;
  }

  .legal-intro {
    margin-bottom: 22px;
  }

  .site-footer .wrap {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
}

@media (max-width: 380px) {
  .legal-section {
    padding: 22px 18px;
  }

  .legal-update {
    padding-inline: 18px;
  }
}

@media (max-width: 359px) {
  .site-header .wrap { gap: 8px; }
  .site-nav { gap: 6px; }
  .back-link { gap: 0; padding-inline: 6px; }
  .back-link span { display: none; }
}

