:root {
  --ink: #211a16;
  --brown: #3a2112;
  --bronze: #9b6a45;
  --warm-white: #f5f1ea;
  --paper: #fbfaf7;
  --line: rgba(58, 33, 18, 0.17);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--warm-white);
  font-family: Arial, Helvetica, sans-serif;
}

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

.legal-header {
  position: relative;
  z-index: 5;
  display: flex;
  min-height: 116px;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 20px clamp(22px, 5vw, 82px);
  border-bottom: 1px solid var(--line);
  background: rgba(245, 241, 234, 0.96);
}

.legal-brand,
.legal-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 15px;
}

.legal-footer-brand > span {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.legal-footer-brand strong {
  font-size: 0.92rem;
  letter-spacing: 0.21em;
}

.legal-footer-brand small {
  color: var(--bronze);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.05em;
}

.legal-brand-lockup {
  display: block;
  width: 205px;
  height: auto;
}

.legal-header-actions {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 46px);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-header-actions > a {
  padding: 10px 0;
  border-bottom: 1px solid rgba(58, 33, 18, 0.22);
}

.legal-header-actions > a:hover,
.legal-header-actions > a:focus-visible {
  border-color: var(--bronze);
}

.legal-home-link span {
  margin-inline-start: 8px;
  color: var(--bronze);
}

.legal-languages {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.legal-languages select {
  width: 130px;
  height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 0.7rem;
  font-weight: 700;
  outline: 0;
}

.legal-hero {
  position: relative;
  min-height: 470px;
  padding: 105px clamp(22px, 12vw, 190px) 90px;
  overflow: hidden;
  color: var(--brown);
  background: #e9dfd1;
}

.legal-hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  content: "";
  background: var(--line);
}

.legal-hero-monogram {
  position: absolute;
  top: 50%;
  right: -4vw;
  width: min(54vw, 690px);
  opacity: 0.07;
  transform: translateY(-50%);
  mix-blend-mode: multiply;
}

[dir="rtl"] .legal-hero-monogram {
  right: auto;
  left: -4vw;
}

.legal-hero-monogram img {
  width: 100%;
  height: auto;
}

.legal-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 980px;
}

.legal-hero-copy > p {
  margin: 0 0 31px;
  color: var(--bronze);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.legal-hero-copy h1 {
  max-width: 900px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.2rem, 7vw, 7rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.95;
}

[dir="rtl"] .legal-hero-copy h1 {
  letter-spacing: -0.025em;
  line-height: 1.02;
}

.legal-hero-copy > span {
  display: block;
  margin-top: 32px;
  color: rgba(33, 26, 22, 0.58);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
}

.legal-document {
  width: min(100% - 44px, 1040px);
  margin: 0 auto;
  padding: 105px 0 120px;
}

.legal-document > p {
  margin: 0 0 23px;
  color: rgba(33, 26, 22, 0.76);
  font-size: 1rem;
  line-height: 1.82;
}

.legal-document > p:first-child {
  margin-bottom: 16px;
}

.legal-document > p:first-child strong {
  color: var(--brown);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.25rem, 4vw, 4rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.legal-document > p:nth-child(2) em {
  color: var(--bronze);
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.legal-document > p > strong:only-child {
  display: block;
  margin-top: 62px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--brown);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.65rem, 2.8vw, 2.45rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.legal-document blockquote {
  margin: 34px 0;
  padding: 24px 28px;
  border: 0;
  border-inline-start: 3px solid var(--bronze);
  background: #eee4d7;
}

.legal-document blockquote p {
  margin: 0 0 15px;
  color: rgba(33, 26, 22, 0.76);
  line-height: 1.72;
}

.legal-document blockquote p:last-child {
  margin-bottom: 0;
}

.legal-document table {
  width: 100%;
  margin: 32px 0 42px;
  border-collapse: collapse;
  background: var(--paper);
}

.legal-document th,
.legal-document td {
  padding: 16px 18px;
  border: 1px solid var(--line);
  text-align: start;
  vertical-align: top;
  font-size: 0.82rem;
  line-height: 1.55;
}

.legal-document th {
  color: var(--brown);
  background: #eee4d7;
  font-weight: 700;
}

.legal-document table p {
  margin: 0 0 7px;
  line-height: 1.6;
}

.legal-document table p:last-child {
  margin-bottom: 0;
}

.legal-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 34px 50px;
  padding: 48px clamp(22px, 6vw, 100px);
  color: var(--warm-white);
  background: var(--brown);
}

.legal-footer-brand img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  filter: brightness(2.8) grayscale(1);
  opacity: 0.82;
}

.legal-footer nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  color: rgba(245, 241, 234, 0.76);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.legal-footer nav a:hover,
.legal-footer nav a:focus-visible {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.legal-footer nav i {
  color: var(--bronze);
  font-style: normal;
}

.legal-footer > p {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 28px;
  border-top: 1px solid rgba(245, 241, 234, 0.18);
  color: rgba(245, 241, 234, 0.58);
  font-size: 0.68rem;
  text-align: center;
}

.legal-footer .footer-credit {
  grid-column: 1 / -1;
  margin-top: -20px;
  color: rgba(245, 241, 234, 0.4);
  font-size: 0.55rem;
  letter-spacing: 0.09em;
  text-align: center;
}

@media (max-width: 760px) {
  .legal-header {
    min-height: 96px;
    padding: 14px 18px;
  }

  .legal-brand-lockup {
    width: 165px;
  }

  .legal-header-actions > a:first-child {
    display: none;
  }

  .legal-header-actions {
    font-size: 0.62rem;
  }

  .legal-hero {
    min-height: 390px;
    padding: 80px 18px 70px;
  }

  .legal-hero-monogram {
    right: -28vw;
    width: 108vw;
  }

  [dir="rtl"] .legal-hero-monogram {
    right: auto;
    left: -28vw;
  }

  .legal-hero-copy h1 {
    font-size: clamp(3rem, 15vw, 5.1rem);
  }

  .legal-document {
    width: min(100% - 36px, 1040px);
    padding: 76px 0 86px;
  }

  .legal-document > p {
    font-size: 0.93rem;
    line-height: 1.72;
  }

  .legal-document > p > strong:only-child {
    margin-top: 48px;
  }

  .legal-document blockquote {
    padding: 20px;
  }

  .legal-document table {
    display: block;
    overflow-x: auto;
  }

  .legal-footer {
    grid-template-columns: 1fr;
    padding: 42px 18px;
  }

  .legal-footer nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 13px;
  }

  .legal-footer nav i {
    display: none;
  }
}

@media (max-width: 520px) {
  .legal-home-link {
    display: none;
  }

  .legal-header-actions {
    gap: 8px;
  }
}

@media print {
  .legal-header,
  .legal-footer,
  .legal-hero-monogram {
    display: none;
  }

  .legal-hero {
    min-height: auto;
    padding: 0 0 28px;
    background: #fff;
  }

  .legal-document {
    width: 100%;
    padding: 20px 0 0;
  }
}
