* { box-sizing: border-box; }

html {
  background: #f3f5f7;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: #202124;
  background: #f3f5f7;
  font-family: Inter, Arial, Helvetica, sans-serif;
  line-height: 1.7;
}

main {
  max-width: 920px;
  margin: 40px auto;
  padding: 45px 55px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 10px 35px rgba(0,0,0,.08);
}

main > p:first-child {
  color: #777;
  font-size: 14px;
  margin-bottom: 4px;
}

h1 {
  font-size: 42px;
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin: 25px 0 20px;
  color: #111;
}

h2 {
  font-size: 28px;
  line-height: 1.25;
  margin: 45px 0 18px;
  color: #171717;
}

p {
  font-size: 18px;
  margin: 18px 0;
}

strong {
  color: #111;
}

figure {
  margin: 35px 0;
}

figure img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 14px;
  background: #e7eaee;
}

figcaption {
  margin-top: 10px;
  color: #666;
  font-size: 14px;
}

ul {
  padding-left: 25px;
  background: #f8fafc;
  border-radius: 14px;
  padding-top: 20px;
  padding-bottom: 20px;
}

li {
  font-size: 17px;
  margin: 10px 0;
}

a {
  color: #1769ff;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

footer {
  max-width: 920px;
  margin: 30px auto 50px;
  padding: 35px 55px;
  background: #1f2937;
  color: #e5e7eb;
  border-radius: 18px;
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  padding-bottom: 25px;
  margin-bottom: 25px;
  border-bottom: 1px solid rgba(255,255,255,.15);
}

footer a {
  color: #93c5fd;
}

footer p {
  font-size: 15px;
  margin: 8px 0;
}

@media (max-width: 700px) {
  main, footer {
    margin: 15px;
    padding: 25px 20px;
    border-radius: 12px;
  }

  h1 {
    font-size: 30px;
  }

  h2 {
    font-size: 23px;
  }

  p {
    font-size: 16px;
  }
}

/* Legal and privacy pages */
.policy-page .eyebrow {
  margin-bottom: 4px;
  color: #667085;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.policy-page .policy-updated {
  margin-top: -8px;
  color: #667085;
  font-size: 15px;
}

.legal-card {
  margin: 24px 0;
  padding: 22px 26px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #f8fafc;
}

.legal-card p {
  margin: 7px 0;
  font-size: 16px;
}

.policy-table-wrap {
  width: 100%;
  margin: 24px 0;
  overflow-x: auto;
}

.policy-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.5;
}

.policy-table th,
.policy-table td {
  padding: 13px 14px;
  border: 1px solid #e5e7eb;
  text-align: left;
  vertical-align: top;
}

.policy-table th {
  background: #f8fafc;
  color: #111827;
}

.policy-table code {
  font-size: 13px;
}

.cookie-settings-link {
  padding: 10px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  background: #fff;
  color: #1769ff;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.cookie-settings-link:hover {
  background: #f8fafc;
}

footer nav a[aria-current="page"] {
  color: #fff;
  font-weight: 700;
}

/* Consent banner: non-blocking and with equivalent accept/reject controls */
.cookie-consent {
  position: fixed;
  z-index: 9999;
  right: 18px;
  bottom: 18px;
  left: 18px;
  max-width: 1040px;
  margin: 0 auto;
  color: #111827;
  background: #fff;
  border: 1px solid #d7dde5;
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, .22);
}

.cookie-consent__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  padding: 18px;
  align-items: end;
}

.cookie-consent__copy > strong {
  display: block;
  margin-bottom: 5px;
  font-size: 17px;
}

.cookie-consent__copy p {
  margin: 5px 0;
  font-size: 14px;
  line-height: 1.55;
}

.cookie-consent__links {
  color: #667085;
}

.cookie-consent__settings {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e5e7eb;
}

.cookie-consent__settings label {
  font-size: 14px;
  font-weight: 700;
}

.cookie-consent__settings label span {
  color: #667085;
  font-weight: 400;
}

.cookie-consent__actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  min-width: 455px;
}

.cookie-btn {
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid #64748b;
  border-radius: 8px;
  background: #fff;
  color: #111827;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.cookie-btn:hover {
  background: #f1f5f9;
}

.cookie-btn--save {
  grid-column: 1 / -1;
}

.cookie-consent [hidden] {
  display: none !important;
}

@media (max-width: 820px) {
  .cookie-consent__inner {
    grid-template-columns: 1fr;
  }

  .cookie-consent__actions {
    min-width: 0;
  }
}

@media (max-width: 560px) {
  .cookie-consent {
    right: 8px;
    bottom: 8px;
    left: 8px;
  }

  .cookie-consent__inner {
    padding: 14px;
  }

  .cookie-consent__actions {
    grid-template-columns: 1fr;
  }

  .cookie-btn--save {
    grid-column: auto;
  }
}
@media (max-width: 768px) {
  .image-container,
  .hero-image,
  .content-image {
      width: 100%;
      height: 220px;
      overflow: hidden;
      border-radius: 12px;
  }

  .image-container img,
  .hero-image img,
  .content-image img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center;
      display: block;
  }
}
/* Mobile image adaptation */
@media (max-width: 768px) {
  figure {
    width: 100%;
    height: 220px;
    overflow: hidden;
    border-radius: 14px;
  }

  figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
  }

  figcaption {
    display: none;
  }
}
