@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@600;700;800&display=swap');

.legal-page {
  background: var(--paper, #fffdfa);
  color: var(--ink, #10201a);
}

.legal-page .site-header {
  position: sticky;
  top: 0;
}

.legal-page .header-inner {
  min-height: 86px;
}

.legal-header-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line, #dde5e1);
  border-radius: 12px;
  background: rgba(255,255,255,.78);
}

.legal-header-nav a {
  min-height: 36px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  color: #53675e;
  font-size: 12px;
  font-weight: 800;
}

.legal-header-nav a:hover,
.legal-header-nav a[aria-current="page"] {
  background: #f2f5f3;
  color: var(--forest, #073c35);
}

.legal-page .header-actions {
  margin-left: 8px;
}

.legal-masthead {
  position: relative;
  overflow: hidden;
  padding: 86px 0 72px;
  border-bottom: 1px solid #edf0ef;
  background: linear-gradient(180deg, #fffdfa 0%, #fffdfa 65%, #fafbf9 100%);
}

.legal-masthead::before,
.legal-masthead::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.legal-masthead::before {
  width: 620px;
  height: 620px;
  left: -330px;
  bottom: -430px;
  background: radial-gradient(circle at 62% 38%, rgba(23,104,242,.15), rgba(23,104,242,0) 68%);
}

.legal-masthead::after {
  width: 720px;
  height: 520px;
  right: 4%;
  bottom: -410px;
  background: radial-gradient(circle at 50% 28%, rgba(255,112,88,.15), rgba(255,112,88,0) 68%);
}

.legal-masthead-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(290px, 380px);
  gap: 72px;
  align-items: end;
}

.legal-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #d4e1ff;
  border-radius: 999px;
  padding: 8px 12px;
  background: #f4f7ff;
  color: #1f5fc9;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.legal-kicker i {
  font-style: normal;
}

.legal-masthead h1 {
  max-width: 900px;
  margin: 22px 0 18px;
  font: 800 clamp(50px, 6.2vw, 82px)/.98 Manrope, sans-serif;
  letter-spacing: -.058em;
}

.legal-masthead .legal-lead {
  max-width: 760px;
  margin: 0;
  color: #4e6259;
  font-size: 18px;
  line-height: 1.7;
}

.legal-meta-card {
  position: relative;
  overflow: hidden;
  border: 1px solid #dce4e0;
  border-radius: 18px;
  padding: 24px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 18px 55px rgba(20,46,37,.08);
}

.legal-meta-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, #1768f2, #665fe3, #ff7058);
}

.legal-meta-label {
  display: block;
  margin-bottom: 7px;
  color: #798981;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.legal-meta-card strong {
  display: block;
  font: 800 20px/1.2 Manrope, sans-serif;
  letter-spacing: -.02em;
}

.legal-meta-card p {
  margin: 8px 0 0;
  color: #687971;
  font-size: 13px;
  line-height: 1.55;
}

.legal-body {
  padding: 70px 0 96px;
  background: #f7f9f8;
}

.legal-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 900px);
  gap: 54px;
  align-items: start;
  justify-content: space-between;
}

.legal-toc {
  position: sticky;
  top: 112px;
  overflow: hidden;
  border: 1px solid var(--line, #dde5e1);
  border-radius: 17px;
  background: #fff;
}

.legal-toc-head {
  padding: 19px 20px 15px;
  border-bottom: 1px solid #edf0ee;
}

.legal-toc-head span {
  display: block;
  color: var(--blue, #1768f2);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.legal-toc-head strong {
  display: block;
  margin-top: 3px;
  font: 800 16px Manrope, sans-serif;
}

.legal-toc-links {
  padding: 10px;
}

.legal-toc a {
  display: flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 10px;
  border-radius: 8px;
  color: #60736a;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
}

.legal-toc a:hover {
  background: #f4f7f5;
  color: var(--forest, #073c35);
}

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

.legal-content section {
  scroll-margin-top: 112px;
  margin-bottom: 14px;
  border: 1px solid var(--line, #dde5e1);
  border-radius: 17px;
  padding: 30px 32px;
  background: #fff;
}

.legal-content section:hover {
  border-color: #cfdad5;
}

.legal-content h2 {
  margin: 0 0 13px;
  color: #10201a;
  font: 800 22px/1.2 Manrope, sans-serif;
  letter-spacing: -.03em;
}

.legal-content h3 {
  margin: 22px 0 8px;
  color: #20342c;
  font: 800 15px/1.3 Manrope, sans-serif;
}

.legal-content p,
.legal-content li {
  color: #53675e;
  font-size: 14px;
  line-height: 1.72;
}

.legal-content p {
  margin: 0 0 13px;
}

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

.legal-content ul {
  margin: 12px 0 0;
  padding-left: 21px;
}

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

.legal-content a {
  color: var(--blue, #1768f2);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: rgba(23,104,242,.28);
  text-underline-offset: 3px;
}

.legal-content .notice {
  margin-top: 18px;
  border: 1px solid #d8e4ff;
  border-radius: 13px;
  padding: 16px 18px;
  background: #f3f7ff;
  color: #31547a;
}

.legal-content .contact-card {
  position: relative;
  overflow: hidden;
  border-color: #0d4c43;
  background: linear-gradient(135deg, #073c35, #0b5147);
  box-shadow: 0 20px 54px rgba(7,60,53,.16);
}

.legal-content .contact-card::after {
  content: "";
  position: absolute;
  width: 230px;
  height: 230px;
  right: -90px;
  bottom: -140px;
  border-radius: 50%;
  background: rgba(255,255,255,.07);
}

.legal-content .contact-card h2,
.legal-content .contact-card p,
.legal-content .contact-card a {
  position: relative;
  z-index: 1;
  color: #fff;
}

.legal-content .contact-card p {
  color: rgba(255,255,255,.74);
}

.legal-content .contact-card a {
  text-decoration-color: rgba(255,255,255,.35);
}

.legal-footer {
  border-top: 1px solid #e8edeb;
  background: #fffdfa;
}

.legal-footer-inner {
  min-height: 112px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.legal-footer-copy {
  color: #718079;
  font-size: 12px;
}

.legal-footer-links {
  margin-left: auto;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.legal-footer-links a {
  color: #53675e;
  font-size: 12px;
  font-weight: 750;
}

.legal-footer-links a:hover {
  color: var(--blue, #1768f2);
}

@media (max-width: 980px) {
  .legal-header-nav { display: none; }
  .legal-masthead { padding: 64px 0 58px; }
  .legal-masthead-grid { grid-template-columns: 1fr; gap: 30px; }
  .legal-meta-card { max-width: 520px; }
  .legal-layout { grid-template-columns: 1fr; gap: 26px; }
  .legal-toc { position: static; }
  .legal-toc-links { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 720px) {
  .legal-page .container { width: min(100% - 30px, 1420px); }
  .legal-page .site-header { height: 74px; }
  .legal-page .header-inner { min-height: 74px; gap: 14px; }
  .legal-page .brand img { width: 38px; height: 38px; }
  .legal-page .brand strong { font-size: 16px; }
  .legal-page .header-actions { margin-left: auto; }
  .legal-page .header-actions .button-primary { display: none; }
  .legal-page .header-actions .button-secondary { min-height: 40px; padding: 0 13px; }
  .legal-masthead { padding: 52px 0 46px; }
  .legal-masthead h1 { font-size: clamp(43px, 14vw, 64px); }
  .legal-masthead .legal-lead { font-size: 16px; }
  .legal-meta-card { padding: 20px; }
  .legal-body { padding: 42px 0 64px; }
  .legal-toc-links { grid-template-columns: 1fr; }
  .legal-content section { padding: 23px 21px; border-radius: 14px; }
  .legal-content h2 { font-size: 20px; }
  .legal-footer-inner { min-height: 0; padding: 30px 0; align-items: flex-start; flex-direction: column; gap: 18px; }
  .legal-footer-links { margin-left: 0; }
}
