@import url("styles.css");

body.legal-page { min-height: 100vh; }
.legal-header {
  width: min(1050px, calc(100% - 32px));
  min-height: 76px;
  margin: 16px auto 0;
  padding: 10px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 22px;
  background: rgba(247,245,237,.9);
  box-shadow: 0 8px 30px rgba(35,57,39,.05);
}
.legal-back {
  min-height: 42px;
  padding: 7px 17px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--olive);
  font-size: .9rem;
}
.legal-back:hover, .legal-back:focus-visible { background: rgba(53,86,57,.06); outline: none; }
.legal-main { width: min(800px, calc(100% - 38px)); margin: 0 auto; padding: 90px 0 110px; }
.legal-document-header { padding-bottom: 38px; margin-bottom: 46px; border-bottom: 1px solid var(--line); }
.legal-document-header .legal-kicker { margin: 0 0 10px; color: var(--gold); font-size: .92rem; font-weight: 500; }
.legal-document-header h1 { margin: 0; font-size: clamp(2.75rem, 5vw, 3.5rem); line-height: 1.32; }
.legal-document-header .legal-subtitle { margin: 12px 0 0; color: var(--muted); font-size: 1.06rem; line-height: 1.9; }
.legal-intro { margin-bottom: 52px; }
.legal-section { padding: 35px 0; border-top: 1px solid rgba(53,86,57,.11); }
.legal-section:first-of-type { border-top: 0; }
.legal-section h2 { margin: 0 0 21px; color: var(--olive-dark); font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; line-height: 1.5; letter-spacing: 0; }
.legal-content p { margin: 0 0 13px; color: #4f5c52; font-size: 1.06rem; line-height: 1.95; }
.legal-content a { color: var(--olive); font-weight: 500; text-decoration: underline; text-decoration-color: rgba(184,155,95,.65); text-underline-offset: 5px; }
.legal-footer { background: var(--olive-dark); color: white; }
.legal-footer-inner { width: min(800px, calc(100% - 38px)); margin: 0 auto; padding: 34px 0; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.legal-footer-links { display: flex; flex-wrap: wrap; gap: 9px 18px; color: #c9d1ca; font-size: .88rem; }
.legal-footer-links a:hover, .legal-footer-links a:focus-visible { color: white; outline: none; }
.legal-footer-brand { color: #d9ded9; font-size: .82rem; }

@media (max-width: 640px) {
  .legal-header { min-height: 66px; margin-top: 10px; padding: 8px 12px; }
  .legal-header .brand { font-size: 1.1rem; }
  .legal-back { min-height: 38px; padding: 6px 12px; font-size: .875rem; }
  .legal-main { width: min(100% - 30px, 800px); padding: 65px 0 80px; }
  .legal-document-header { padding-bottom: 30px; margin-bottom: 30px; }
  .legal-document-header .legal-kicker { font-size: .875rem; }
  .legal-document-header h1 { font-size: clamp(1.875rem, 8vw, 2.25rem); line-height: 1.36; }
  .legal-document-header .legal-subtitle { font-size: 1rem; }
  .legal-intro { margin-bottom: 34px; }
  .legal-section { padding: 29px 0; }
  .legal-section h2 { font-size: 1.18rem; }
  .legal-content p { font-size: 1rem; line-height: 2; }
  .legal-footer-inner { width: min(100% - 30px, 800px); padding: 30px 0; flex-direction: column; align-items: flex-start; }
}
