:root {
  --white: #ffffff;
  --ink: #111111;
  --muted: #66655f;
  --yellow: #ffce38;
  --yellow-soft: #fff7d7;
  --border: #deddd8;
  --page-width: 980px;
  --text-width: 760px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-underline-offset: 3px;
  text-decoration-color: #9f9d96;
}

a:hover {
  text-decoration-color: var(--ink);
}

a:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

.top-accent {
  width: 100%;
  height: 6px;
  background: var(--yellow);
}

.legal-header,
.legal-main,
.legal-footer {
  width: min(calc(100% - 48px), var(--page-width));
  margin-inline: auto;
}

.legal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 106px;
  border-bottom: 1px solid #efeee9;
}

.legal-brand {
  position: relative;
  display: block;
  width: 176px;
  height: 66px;
  overflow: hidden;
  line-height: 0;
}

.legal-brand img {
  position: absolute;
  top: -82px;
  left: -29px;
  display: block;
  width: 226px;
  max-width: none;
  height: auto;
}

.back-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 9px 14px;
  background: #fbfaf7;
  border: 1px solid var(--border);
  border-radius: 9px;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
}

.back-link::before {
  margin-right: 8px;
  content: "←";
}

.legal-main {
  padding-block: clamp(50px, 7vw, 82px) clamp(70px, 8vw, 104px);
}

.legal-intro,
.legal-content {
  width: min(100%, var(--text-width));
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.eyebrow::before {
  display: inline-block;
  width: 26px;
  height: 4px;
  margin-right: 10px;
  vertical-align: 3px;
  background: var(--yellow);
  border-radius: 20px;
  content: "";
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(2.45rem, 5.5vw, 4.3rem);
  font-weight: 650;
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.legal-lead {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.legal-content {
  margin-top: clamp(48px, 6vw, 72px);
}

.legal-section {
  padding-block: 34px;
  border-top: 1px solid #e8e7e2;
}

.legal-section:first-child {
  border-top-color: var(--ink);
}

.legal-section h2 {
  margin-bottom: 20px;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.legal-section p {
  margin-bottom: 14px;
  color: #3f3e39;
}

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

.legal-section ol,
.legal-section ul {
  margin: 0;
  padding-left: 1.4rem;
  color: #3f3e39;
}

.legal-section li {
  padding-left: 0.35rem;
}

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

.legal-section ul {
  margin-top: 10px;
}

.legal-section ol ul {
  margin-bottom: 4px;
}

.contact-card {
  margin: 0 0 22px;
  padding: 18px 20px;
  background: #fbfaf7;
  border-left: 4px solid var(--yellow);
  border-radius: 0 10px 10px 0;
  font-style: normal;
}

.contact-card strong,
.contact-card span {
  display: block;
}

.legal-note {
  padding: 17px 19px;
  background: var(--yellow-soft);
  border: 1px solid #f0dc91;
  border-radius: 10px;
}

.legal-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  min-height: 100px;
  padding-block: 26px;
  border-top: 1px solid #e4e3de;
  color: #595852;
  font-size: 0.875rem;
}

.legal-footer p {
  margin: 0;
  font-weight: 700;
}

.legal-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
}

@media (max-width: 560px) {
  .legal-header,
  .legal-main,
  .legal-footer {
    width: min(calc(100% - 32px), var(--page-width));
  }

  .legal-header {
    min-height: 76px;
  }

  .legal-brand {
    width: 132px;
    height: 52px;
  }

  .legal-brand img {
    top: -61px;
    left: -22px;
    width: 168px;
  }

  .back-link {
    min-height: 40px;
    padding-inline: 11px;
    font-size: 0.78rem;
  }

  .legal-main {
    padding-block: 38px 64px;
  }

  h1 {
    font-size: clamp(2.2rem, 11vw, 3rem);
  }

  .legal-lead {
    font-size: 1rem;
  }

  .legal-content {
    margin-top: 42px;
  }

  .legal-section {
    padding-block: 27px;
  }

  .legal-section ol,
  .legal-section ul {
    padding-left: 1.2rem;
  }

  .legal-footer {
    display: block;
    min-height: 0;
    padding-block: 30px 36px;
  }

  .legal-footer nav {
    margin-top: 14px;
  }
}
