.legal-page {
  background: #f7f1e8;
}

.legal-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(72px, 8vw, 108px) clamp(24px, 7vw, 112px);
  color: #fffaf2;
  background:
    linear-gradient(90deg, rgba(6, 27, 51, 0.98) 0%, rgba(6, 27, 51, 0.9) 62%, rgba(6, 27, 51, 0.76) 100%),
    url("../images/conclude-birou-interior.webp") center 42% / cover no-repeat;
}

.legal-hero::after {
  position: absolute;
  right: 7vw;
  bottom: -80px;
  width: 280px;
  height: 280px;
  content: "";
  border: 1px solid rgba(199, 149, 62, 0.34);
  border-radius: 50%;
}

.legal-hero > div {
  position: relative;
  z-index: 1;
  max-width: 850px;
}

.legal-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.legal-breadcrumb span { color: #c7953e; }

.legal-hero h1 {
  max-width: 760px;
  margin: 12px 0 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(46px, 6vw, 78px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.legal-hero p:last-child {
  max-width: 700px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(17px, 1.5vw, 19px);
  line-height: 1.7;
}

.legal-content {
  display: grid;
  grid-template-columns: minmax(220px, 0.33fr) minmax(0, 0.67fr);
  gap: clamp(48px, 7vw, 100px);
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(70px, 8vw, 108px) 0;
}

.legal-aside {
  align-self: start;
  position: sticky;
  top: 110px;
  padding: 28px;
  background: #fffaf2;
  border: 1px solid rgba(199, 149, 62, 0.34);
  border-top: 3px solid #c7953e;
  border-radius: 6px;
}

.legal-aside h2 {
  margin: 0 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  font-weight: 500;
}

.legal-aside p,
.legal-aside a {
  margin: 0 0 8px;
  color: #5d6471;
  font-size: 14px;
  line-height: 1.65;
}

.legal-aside a {
  display: block;
  color: #8d6426;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.legal-updated {
  display: block;
  margin-top: 22px;
  padding-top: 16px;
  color: #737985;
  border-top: 1px solid rgba(6, 27, 51, 0.12);
  font-size: 12px;
}

.legal-article {
  min-width: 0;
  counter-reset: legal-section;
}

.legal-section {
  position: relative;
  padding: 0 0 38px 54px;
  border-bottom: 1px solid rgba(6, 27, 51, 0.12);
  counter-increment: legal-section;
}

.legal-section + .legal-section { padding-top: 38px; }

.legal-section::before {
  position: absolute;
  top: 2px;
  left: 0;
  content: counter(legal-section, decimal-leading-zero);
  color: #c7953e;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
}

.legal-section + .legal-section::before { top: 40px; }

.legal-section h2 {
  margin: 0 0 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(27px, 3vw, 38px);
  font-weight: 500;
  line-height: 1.14;
}

.legal-section h3 {
  margin: 24px 0 8px;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-section p,
.legal-section li {
  color: #535c6a;
  font-size: 17px;
  line-height: 1.78;
}

.legal-section p { margin: 0 0 14px; }
.legal-section ul { margin: 12px 0 18px; padding-left: 22px; }
.legal-section li + li { margin-top: 8px; }
.legal-section a { color: #8d6426; text-decoration: underline; text-underline-offset: 3px; }

.legal-table-wrap { overflow-x: auto; margin-top: 20px; }
.legal-table { width: 100%; border-collapse: collapse; background: #fffaf2; }
.legal-table th,
.legal-table td { padding: 15px; text-align: left; vertical-align: top; border: 1px solid rgba(6, 27, 51, 0.12); }
.legal-table th { color: #061b33; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.legal-table td { color: #535c6a; font-size: 15px; line-height: 1.55; }

.legal-note {
  margin-top: 20px;
  padding: 20px 22px;
  background: rgba(199, 149, 62, 0.09);
  border-left: 3px solid #c7953e;
}

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

@media (max-width: 820px) {
  .legal-hero { padding: 62px 22px; }
  .legal-content { grid-template-columns: 1fr; width: min(100% - 36px, 720px); gap: 42px; padding: 58px 0; }
  .legal-aside { position: static; }
  .legal-section { padding-left: 42px; }
}

@media (max-width: 520px) {
  .legal-hero h1 { font-size: 42px; }
  .legal-section { padding-left: 0; padding-top: 38px; }
  .legal-section:first-child { padding-top: 38px; }
  .legal-section::before,
  .legal-section + .legal-section::before { top: 0; }
  .legal-section p,
  .legal-section li { font-size: 16px; }
}