/* Residia legal pages — shared stylesheet
   Tokens mirror the residia.ai Elementor kit (navy #15283E, teal #31A9A2). */

:root {
  --navy: #15283e;
  --teal: #31a9a2;
  --teal-dark: #27908a;
  --text: rgba(0, 0, 0, 0.72);
  --heading: #1e293b;
  --muted: #475569;
  --surface: #f0f5fa;
  --border: #d1d5db;
  --offwhite: #ecebe6;
  --white: #ffffff;

  --font-heading: "Outfit", "Segoe UI", Helvetica, Arial, sans-serif;
  --font-body: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-ui: "Manrope", "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --content-width: 920px;
  --radius: 12px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--teal);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover,
a:focus {
  color: var(--navy);
  text-decoration: underline;
}

/* Header ---------------------------------------------------------------- */

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-header__logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.site-header__logo:hover,
.site-header__logo:focus {
  text-decoration: none;
}

.site-header__logo img {
  height: 60px;
  width: auto;
}

.site-header__cta {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 500;
  color: var(--white);
  background: var(--navy);
  border-radius: var(--radius);
  padding: 14px 28px;
  white-space: nowrap;
}

.site-header__cta:hover,
.site-header__cta:focus {
  background: var(--teal);
  color: var(--white);
  text-decoration: none;
}

/* Hero ------------------------------------------------------------------ */

.hero {
  min-height: 450px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px;
  color: var(--white);
  background-color: var(--navy);
  background-image: linear-gradient(180deg, var(--navy) 0%, var(--teal) 100%);
}

.hero__inner {
  max-width: var(--content-width);
}

.hero h1 {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 40px;
  line-height: 1.2;
  color: var(--white);
}

.hero__meta {
  margin: 20px 0 0;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.85);
}

.hero__meta span + span::before {
  content: "\00b7";
  margin: 0 10px;
  opacity: 0.7;
}

/* Legal body ------------------------------------------------------------ */

.legal {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 64px 24px 96px;
}

.legal > *:first-child {
  margin-top: 0;
}

.legal h2 {
  margin: 2.75rem 0 1rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 26px;
  line-height: 1.3;
  color: var(--navy);
  scroll-margin-top: 24px;
}

.legal h3 {
  margin: 1.75rem 0 0.75rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.35;
  color: var(--heading);
}

.legal p {
  margin: 0 0 1.1rem;
}

.legal ul {
  margin: 0 0 1.25rem;
  padding-left: 1.5rem;
}

.legal li {
  margin-bottom: 0.5rem;
}

.legal li::marker {
  color: var(--teal);
}

.legal strong {
  color: var(--heading);
  font-weight: 700;
}

.legal hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

.legal address {
  font-style: normal;
  padding: 20px 24px;
  border-left: 4px solid var(--teal);
  background: var(--surface);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.legal address p {
  margin: 0;
}

/* Index cards ----------------------------------------------------------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 8px;
}

.card {
  display: block;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.card:hover,
.card:focus {
  text-decoration: none;
  color: var(--text);
  border-color: var(--teal);
  box-shadow: 0 6px 24px rgba(21, 40, 62, 0.08);
}

.card h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.card p {
  margin: 0 0 12px;
}

.card__cta {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  color: var(--teal);
}

/* Footer ---------------------------------------------------------------- */

.site-footer {
  background: var(--navy);
  color: var(--offwhite);
  text-align: center;
  padding: 40px 24px;
  font-family: var(--font-ui);
  font-size: 14px;
}

.site-footer__links {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 28px;
}

.site-footer__links a {
  color: var(--offwhite);
  font-weight: 500;
}

.site-footer__links a:hover,
.site-footer__links a:focus {
  color: var(--teal);
  text-decoration: none;
}

.site-footer__copyright {
  margin: 0;
  opacity: 0.7;
}

/* Responsive ------------------------------------------------------------ */

@media (max-width: 1024px) {
  .hero h1 {
    font-size: 29px;
    line-height: 35px;
  }
}

@media (max-width: 767px) {
  body {
    font-size: 16px;
  }

  .site-header__logo img {
    height: 48px;
  }

  .site-header__cta {
    padding: 12px 20px;
  }

  .hero {
    min-height: 350px;
  }

  .hero h1 {
    font-size: 26px;
    line-height: 36px;
  }

  .hero__meta span {
    display: block;
  }

  .hero__meta span + span::before {
    content: none;
  }

  .legal {
    padding: 40px 20px 64px;
  }

  .legal h2 {
    font-size: 22px;
  }
}

/* Print ----------------------------------------------------------------- */

@media print {
  .site-header,
  .site-footer {
    display: none;
  }

  .hero {
    min-height: 0;
    padding: 0 0 16px;
    background: none;
    color: #000;
    text-align: left;
  }

  .hero h1,
  .hero__meta {
    color: #000;
  }

  body {
    color: #000;
    font-size: 12pt;
  }

  .legal {
    padding: 0;
  }

  .legal h2 {
    page-break-after: avoid;
  }

  a {
    color: #000;
    text-decoration: underline;
  }
}
