/* ==========================================================================
   Legal pages: terms, privacy, cookies and complaints.
   One stylesheet for four pages. Every rule is scoped to one of the four
   body classes with :is(), so nothing leaks into other pages.
   Shared tokens (navy, line, gold-dark) come from css/styles.css.
   Breakpoint: two columns from 761px, stacked at 760px and below (matches the original).
   ========================================================================== */

body:is(.page-terms, .page-privacy, .page-cookies, .page-complaints) {
  --legal-text: #536275;
  --legal-meta: #768396;
  --legal-nav: #5e6e81;
  --legal-notice-bg: #faf1e6;
  --legal-notice-rule: #b97628;
}

/* 1. Layout: sidebar and article ------------------------------------------ */
body:is(.page-terms, .page-privacy, .page-cookies, .page-complaints) .legal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 9vw;
  min-height: 760px;
  padding: 70px clamp(24px, 8vw, 130px);
}

@media (min-width: 761px) {
  body:is(.page-terms, .page-privacy, .page-cookies, .page-complaints) .legal-layout {
    grid-template-columns: 300px minmax(0, 1fr);
    padding-top: 90px;
    padding-bottom: 90px;
  }

  body:is(.page-terms, .page-privacy, .page-cookies, .page-complaints) .legal-layout > aside {
    position: sticky;
    top: 120px;
  }
}

/* 2. Sidebar: title, date and page links ---------------------------------- */
body:is(.page-terms, .page-privacy, .page-cookies, .page-complaints) .legal-layout aside h1 {
  max-width: 760px;
  margin: 18px 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 43px;
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.055em;
  color: var(--navy);
}

body:is(.page-terms, .page-privacy, .page-cookies, .page-complaints) .legal-layout aside > p {
  margin: 0;
  font-size: 11px;
  line-height: 1.5;
  color: var(--legal-meta);
}

body:is(.page-terms, .page-privacy, .page-cookies, .page-complaints) .legal-layout aside nav {
  display: grid;
  margin-top: 35px;
  border-top: 1px solid var(--line);
}

body:is(.page-terms, .page-privacy, .page-cookies, .page-complaints) .legal-layout aside nav a {
  display: block;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  line-height: 18px;
  color: var(--legal-nav);
}

/* 3. Article: numbered or titled sections --------------------------------- */
body:is(.page-terms, .page-privacy, .page-cookies, .page-complaints) .legal-layout article {
  max-width: 850px;
  font-size: 16px;
  line-height: 28px;
  color: var(--legal-text);
}

body:is(.page-terms, .page-privacy, .page-cookies, .page-complaints) .legal-layout article h2 {
  margin: 45px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 29px;
  font-weight: 500;
  line-height: 50.75px;
  color: var(--navy);
}

body:is(.page-terms, .page-privacy, .page-cookies, .page-complaints) .legal-layout article p {
  margin: 0;
  font-size: 16px;
  line-height: 28px;
  color: var(--legal-text);
}

/* 4. Review notice at the foot of each page ------------------------------- */
body:is(.page-terms, .page-privacy, .page-cookies, .page-complaints) .legal-layout .draft-notice {
  margin-top: 55px;
  padding: 24px 27px;
  background: var(--legal-notice-bg);
  border-left: 4px solid var(--legal-notice-rule);
  font-size: 16px;
  line-height: 28px;
  color: var(--legal-text);
}

body:is(.page-terms, .page-privacy, .page-cookies, .page-complaints) .legal-layout .draft-notice strong {
  font-weight: 700;
  color: var(--legal-text);
}
