/* WordPress-specific additions on top of main.css */

/* Generic page (page.php): light hero + editor content */
.page-content {
  width: 725px;
  margin: 0 0 110px 518px;
  font-size: 20px;
  line-height: 1.5;
}

.page-content > * + * { margin-top: 1.2em; }

.page-content h2,
.page-content h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
}

.page-content h2 { font-size: 40px; }
.page-content h3 { font-size: 28px; }

.page-content a {
  text-decoration: underline;
  text-underline-position: from-font;
}

.page-content ul,
.page-content ol { padding-left: 1.2em; }

.footer__company a:hover { text-decoration: underline; }

@media (max-width: 1023px) {
  .page-content {
    width: auto;
    margin: 0;
    padding: 0 24px 60px;
    font-size: 18px;
    line-height: 1.4;
  }

  .page-content h2 { font-size: 32px; }
  .page-content h3 { font-size: 24px; }
}

@media (min-width: 600px) and (max-width: 1023px) {
  .page-content {
    max-width: 760px;
    padding: 0 48px 70px 25%;
    font-size: 20px;
    line-height: 1.5;
  }
}

/* Keep the admin bar from colliding with the fixed menu overlay */
.admin-bar .mobile-menu { top: var(--wp-admin--admin-bar--height, 32px); }

/* ---------- Legal / document page (template-legal.php) ----------
   A compact header (just the nav) instead of the big hero, a smaller
   heading, and a single readable text column — for privacy policy,
   terms, and similar reference pages. */
.hero__inner--legal {
  height: 128px;
}

.legal {
  max-width: 820px;
  margin: 0 auto;
  padding: 60px 90px 110px;
}

.legal__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 63px;
  line-height: 1.2;
  color: var(--text-primary);
}

.legal__updated {
  margin-top: 16px;
  font-size: 15px;
  color: var(--text-muted);
}

.legal__lead {
  margin-top: 40px;
  font-size: 20px;
  line-height: 1.5;
}

.legal .page-content {
  width: auto;
  max-width: none;
  margin: 40px 0 0;
  padding: 0;
}

@media (max-width: 1023px) {
  .hero__inner--legal { height: auto; padding-bottom: 20px; }

  .legal {
    max-width: none;
    padding: 50px 24px 60px;
  }

  .legal__title { font-size: 40px; line-height: 1; }
  .legal__lead { margin-top: 24px; font-size: 18px; line-height: 1.4; }

  .legal .page-content { margin-top: 24px; }
}

@media (min-width: 600px) and (max-width: 1023px) {
  .legal { padding: 60px 48px 70px; }
  .legal__title { font-size: 56px; }
}

/* ---------- 404 page (404.php) ----------
   Light hero like Tule tööle: eyebrow + big dark title at the usual
   positions, lead in the sub-page lead column, actions underneath. */
.hero__inner--404 { height: 656px; }

.not-found__eyebrow {
  position: absolute;
  left: calc(37.5% - 451px);
  top: 126px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-800);
  animation: fade-up 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero__lead--404 { top: 364px; }

.not-found__actions {
  position: absolute;
  left: 520px;
  top: 478px;
  display: flex;
  align-items: center;
  gap: 32px;
  animation: fade-up 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) 0.3s both;
}

.not-found__link {
  font-size: 20px;
  line-height: 1.5;
  color: var(--text-primary);
  text-decoration: underline;
  text-underline-position: from-font;
  transition: color 0.15s;
}

.not-found__link:hover { color: var(--green-900); }

@media (max-width: 1023px) {
  .hero__inner--404 { height: auto; }

  .not-found__eyebrow {
    position: static;
    margin: 35px 24px 0 25px;
  }

  .hero__inner--404 .hero__title { margin-top: 12px; }
  .hero__inner--404 .hero__lead { top: auto; margin-top: 35px; margin-bottom: 0; }

  .not-found__actions {
    position: static;
    flex-wrap: wrap;
    gap: 20px 28px;
    margin: 32px 24px 50px 112px;
  }

  .not-found__link { font-size: 18px; line-height: 1.4; }
}

@media (min-width: 600px) and (max-width: 1023px) {
  .not-found__eyebrow { margin: 40px 48px 0; }
  .hero__inner--404 .hero__lead { margin-top: 40px; }
  .not-found__actions { margin: 36px 48px 60px 25%; }
  .not-found__link { font-size: 20px; line-height: 1.5; }
}
