/* Footer active state for subpages */
.footer-links a {
  position: relative;

  opacity: 0.62;
  text-decoration: none;
  transition: opacity 0.25s ease;
}

.footer-links a:hover {
  opacity: 1;
}

.footer-links a.active {
  opacity: 1;
  color: rgba(255,255,255,1);
}

.footer-links a.active::after {
  content: "";

  position: absolute;
  left: 50%;
  bottom: -3px;

  width: 3px;
  height: 3px;

  background: rgba(255,255,255,0.95);
  border-radius: 50%;

  transform: translateX(-50%);
}

/* Policy / legal pages */
.policy-page {
  min-height: 100vh;
  padding: 80px 8%;
  background: #f6f5f2;
  padding-top: 96px;
}

.policy-page .policy-page-content {
  max-width: 900px;
  margin: 0 auto;
  padding-bottom: 80px;
}

.policy-page,
.policy-page p,
.policy-page a,
.policy-page li {
  font-family: "EB Garamond", serif;
}

.policy-page h1,
.policy-page h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  color: #173f35;
}

.policy-page h1 {
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 550;
  margin-bottom: 18px;
}

.policy-intro {
  font-size: 20px;
  line-height: 1.95;
  color: #314540;
  margin-bottom: 44px;
}

.policy-block {
  margin-bottom: 40px;
}

.policy-block h2 {
  font-size: 2rem;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: 22px;
}

.policy-block p {
  font-size: 20px;
  line-height: 1.95;
  color: #3f4b47;
  margin-bottom: 10px;
}

.policy-block a {
  color: #173f35;
  font-size: 20px;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.policy-block ul {
  padding-left: 18px;
}

.policy-block li {
  margin-bottom: 6px;
}
.inquiry-page {
  min-height: 100vh;
  padding: 96px 8% 110px;
  background: #f6f5f2;
}

.inquiry-intro {
  font-size: 20px;
  line-height: 1.95;
  color: #314540;
  margin-bottom: 44px;
}
.inquiry-form {
  max-width: 100%;
  gap: 26px;
}

.inquiry-block {
  background: rgba(255,255,255,0.68);
  padding: 32px;
  border-radius: 22px;
}

.inquiry-block h2 {
  font-family: "Manrope", sans-serif;
  font-size: 15px;

  font-weight: 600;

  letter-spacing: 0.14em;

  text-transform: uppercase;

  margin-bottom: 24px;

  color: #173f35;
}

.form-two-columns {
  display: grid;

  grid-template-columns: 1fr 1fr;

  column-gap: 14px;

  margin-bottom: 18px;
}
.traveller-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;

  margin-bottom: 16px;
}
.inquiry-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.inquiry-stack textarea {
  min-height: 140px;
}
.field-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.inquiry-btn {
  margin-top: 8px;
  padding: 14px 34px;
  align-self: flex-start;
  border-radius: 8px;
}
.inquiry-page h1 {
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  color: #173f35;
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 550;
  margin-bottom: 18px;
}
.inquiry-note {
  font-size: 20px;
  line-height: 1.95;
  color: #314540;
  margin-top: 26px;
  max-width: 100%;
}
.subpage-header {
  position: relative;
  background: #173f35;
  height: 78px;
}

.subpage-header .lang-switch a,
.subpage-header .lang-switch span {
  color: rgba(255,255,255,0.9);
  text-shadow: none;
}

.subpage-header .lang-switch a.active {
  border-bottom: 1px solid rgba(255,255,255,0.85);
}
.faq-page {
  padding-top: 92px;
  padding-bottom: 16px;
}

.faq-page .policy-page-content {
  max-width: 1000px;
  margin: 0 auto;
}

.faq-page .policy-block {
  margin-bottom: 54px;
}
.faq-page h1 {
  margin-bottom: 52px;
  font-size: 2.3rem;
}
.faq-page .policy-block h2 {
  margin-bottom: 18px;
}
.faq-page .policy-block {
  margin-bottom: 62px;
}
.subpage-header .nav-logo img {
  width: 158px;
}
.policy-block ul li {
  font-size: 20px;
  line-height: 1.9;
  margin-bottom: 14px;
  color: #3f4b47;
}
.policy-block ul {
  padding-left: 22px;
  margin-top: 18px;
}
.policy-block:last-child p {
  letter-spacing: 0.01em;
}
.imprint-title {
  margin-bottom: 26px;
}
.imprint-note {
  max-width: 560px;
  margin-top: 22px;
}
.back-link {
  display: inline-block;
  margin-bottom: 36px;
  font-size: 20px;
  letter-spacing: 0.02em;
  color: #51615b;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.back-link:hover {
  opacity: 0.7;
}
.thank-you-content {
  max-width: 700px;
}

.thank-you-page p {
  font-size: 21px;
  line-height: 1.95;
  color: #3f4b47;
  max-width: 720px;
}

.thank-you-page h1 {
  margin-bottom: 18px;
  font-size: 2.4rem;
}
html[lang="fi"] .policy-page-content {
  max-width: 1020px;
}
html[lang="fi"] .faq-page .policy-page-content {
  max-width: 1180px;
}
.faq-page .policy-block h2 {
  margin-bottom: 22px;
}

html[lang="fi"] .faq-page .policy-block {
  margin-bottom: 74px;
}
.usage-block p {
  margin-bottom: 14px;
}
html[lang="fi"] .imprint-page h2 {
  margin-bottom: 20px;
}

.phone-use-note {
  max-width: 720px;
  margin: -4px 0 8px;

  font-family: "Manrope", sans-serif;
  font-size: 13.5px;
  line-height: 1.7;

  color: rgba(63, 75, 71, 0.78);
}

.required {
  opacity: 0.7;
  margin-left: 1px;
}
.form-legal-note {
  max-width: 720px;
  margin: 2px 0 14px;

  font-family: "Manrope", sans-serif;
  font-size: 13px;
  line-height: 1.7;


  color: rgba(63, 75, 71, 0.72);
  opacity: 0.72;
}

.form-legal-note a {
  color: #173f35;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.inquiry-stack textarea {
  min-height: 140px;
}
.nowrap {
  white-space: nowrap;
}

textarea {
  resize: none;
}
@media (min-width: 1200px) {
  .thank-you-page h1 {
    font-size: 3.2rem;
  }
}
@media (max-width: 800px) {
  .subpage-header {
    padding-left: 20px;
    padding-right: 26px;
  }

  .inquiry-page {
    padding: 56px 16px 70px;
  }
  .inquiry-intro {
    margin-bottom: 32px;
  }
  .inquiry-content {
    width: 100%;
    padding-left: 0;
    padding-right: 0;
    box-sizing: border-box;
  }

  .inquiry-form,
  .inquiry-block {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .inquiry-block {
    padding: 40px 28px;
    overflow: hidden;
    border-radius: 22px;
  }

  .traveller-grid,
  .form-two-columns {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  input,
  select,
  textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    border-radius: 16px;
  }

  textarea {
    min-height: 150px;
  }
  .policy-page {
    padding: 48px 16px 0;
    min-height: auto;
}
footer {
    padding: 32px 0 32px;
  }
  .subpage-header .nav-logo img {
  width: 150px;
}
.subpage-header .lang-switch {
    gap: 9px;
  }

  .subpage-header .lang-switch a,
  .subpage-header .lang-switch span {
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    font-weight: 550;
  }
  .back-link {
    margin-bottom: 28px;
  }
  .thank-you-page + footer {
    padding-top: 24px;
  }
}