@font-face {
  font-family: "Wonderful Branding";
  src: url("/fonts/wonderful-branding.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Causten Round";
  src: url("/fonts/causten-round-black.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Causten Round";
  src: url("/fonts/causten-round-black.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Huli Huli Font";
  src: url("/fonts/huli-huli-font.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Huli Huli Font";
  src: url("/fonts/huli-huli-font.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Inter;
  src: url("/fonts/inter-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Inter;
  src: url("/fonts/inter-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

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

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: Inter, sans-serif;
  font-weight: 500;
  color: #19191a;
  background: #fffdf6;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

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

a {
  color: inherit;
}

/* Home / closing — fill viewport above footer, no scroll */
.page-home {
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
}

.page-home main {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
}

.page-home .site-footer .inner {
  padding-top: 10px;
  padding-bottom: 10px;
}

.page-home .site-footer a {
  padding: 6px 0;
}

.closing {
  width: 100%;
  height: 100%;
  max-width: 900px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.closing img {
  width: 100%;
  height: 100%;
  max-height: 750px;
  object-fit: contain;
  object-position: center;
}

/* Legal pages */
.banner {
  background-color: #1c6368;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  min-height: 200px;
  display: flex;
  align-items: flex-end;
}

.banner-privacy {
  background-image: url("/images/banner-privacy.svg");
}

.banner-terms {
  background-image: url("/images/banner-terms.png");
}

.banner .container {
  width: 100%;
  max-width: 1472px;
  margin: 0 auto;
  padding: 24px 16px 28px;
}

.banner h1 {
  margin: 0;
  max-width: 616px;
  font-family: "Huli Huli Font", cursive;
  font-size: clamp(2rem, 6vw, 64px);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 100%;
  text-transform: uppercase;
  text-align: left;
  color: #1b6368;
}

.legal-content {
  flex: 1;
  width: 100%;
  max-width: 1472px;
  margin: 0 auto;
  padding: 40px 16px 64px;
}

.legal-content > h1,
.legal-content .header h1 {
  font-family: "Huli Huli Font", cursive;
  font-size: clamp(1.5rem, 4vw, 48px);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 100%;
  margin: 0 0 1.5rem;
  padding: 0;
  color: #000;
}

.legal-content h2,
.legal-content h3,
.legal-content h4,
.legal-content h5,
.legal-content h6 {
  font-family: "Causten Round", sans-serif;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 110%;
  margin: 40px 0 12px;
  color: #19191a;
}

.legal-content h2 {
  font-weight: 700;
  font-size: 20px;
  line-height: 120%;
}

.legal-content h3,
.legal-content h4 {
  font-size: 16px;
}

.legal-content p {
  margin: 0 0 1rem;
  font-family: Inter, sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 130%;
}

.legal-content a {
  color: #1b6368;
  text-decoration: underline;
}

/* Footer */
.site-footer {
  background: #000;
  color: #fffef9;
  margin-top: auto;
  flex-shrink: 0;
}

.site-footer .inner {
  max-width: 1472px;
  width: 100%;
  margin: 0 auto;
  padding: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 32px;
  justify-content: space-between;
}

.site-footer nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 24px;
}

.site-footer a {
  color: #fffef9;
  font-family: Inter, sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 110%;
  text-decoration: underline;
  padding: 12px 0;
}

.site-footer a[aria-current="page"] {
  font-weight: 700;
}

.site-footer p {
  margin: 0;
  color: #fffef9;
  font-family: Inter, sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 150%;
}

@media (max-width: 640px) {
  .page-home main {
    padding: 4px 8px;
  }

  .banner {
    min-height: 160px;
  }

  .banner-privacy {
    background-image: url("/images/banner-privacy-mobile.svg");
  }

  .banner-terms {
    background-image: url("/images/banner-terms-mobile.png");
  }

  .banner h1 {
    text-align: center;
    font-size: 32px;
    max-width: none;
  }

  .site-footer .inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
  }
}

@media (min-width: 641px) {
  .banner .container,
  .legal-content {
    padding-left: 80px;
    padding-right: 96px;
  }

  .site-footer .inner {
    padding: 16px 96px 16px 80px;
  }
}
