/**
 * Shared inner-page layout for About / Licences / Contact / Legal
 */
.nfip-page {
  background: var(--nfip-color-bg);
  color: var(--nfip-color-text);
  font-family: var(--nfip-font-body);
  overflow-x: clip;
  max-width: 100%;
}
.nfip-page *,
.nfip-page *::before,
.nfip-page *::after {
  box-sizing: border-box;
}
.nfip-page h1,
.nfip-page h2,
.nfip-page h3 {
  font-family: var(--nfip-font-heading);
  letter-spacing: -0.02em;
  color: var(--nfip-color-text);
}
.nfip-page-hero {
  position: relative;
  padding: clamp(48px, 7vw, 88px) 0;
  color: #fff;
  background:
    linear-gradient(110deg, rgba(7,31,49,0.92), rgba(11,58,92,0.72)),
    url("../img/4p.webp") center/cover no-repeat;
}
.nfip-page-hero--split {
  background:
    linear-gradient(160deg, #071f31 0%, #0b3a5c 70%, #0d4a73 100%);
}
.nfip-page-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(20px, 3vw, 36px);
  align-items: center;
}
.nfip-page-hero__media {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  max-height: 340px;
  border: 1px solid rgba(245, 247, 250, 0.12);
}
.nfip-page-hero__media img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 340px;
  object-fit: cover;
  object-position: center;
}
.nfip-page-figure {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  max-height: 360px;
  border: 1px solid var(--nfip-color-border);
  background: #fff;
}
.nfip-page-figure img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 360px;
  object-fit: cover;
  object-position: center;
}
.nfip-page-grid-2--flip {
  align-items: center;
}
.nfip-page-hero--contact {
  background:
    linear-gradient(110deg, rgba(7,31,49,0.92), rgba(11,58,92,0.72)),
    url("../img/6p.webp") center/cover no-repeat;
}
.nfip-page-hero--legal {
  background: linear-gradient(160deg, #071f31, #0b3a5c);
}
.nfip-page-hero--licences {
  background:
    linear-gradient(110deg, rgba(7,31,49,0.94), rgba(11,58,92,0.82)),
    url("../img/21p.webp") right center / cover no-repeat;
}
.nfip-page-hero--legal-tx {
  background:
    linear-gradient(110deg, rgba(7,31,49,0.94), rgba(11,58,92,0.84)),
    url("../img/25p.webp") center / cover no-repeat;
}
.nfip-page-hero .nfip-container { width: min(100% - 2 * var(--nfip-gutter), var(--nfip-container)); margin-inline: auto; }
.nfip-page-hero .nfip-kicker { color: #e2b57a; margin: 0 0 12px; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; font-family: var(--nfip-font-heading); }
.nfip-page-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(28px, 4.5vw, 52px);
  line-height: 1.1;
  max-width: 16ch;
  color: #fff;
  overflow-wrap: anywhere;
}
.nfip-page-hero p {
  margin: 0;
  max-width: 40rem;
  color: rgba(245,247,250,0.8);
  line-height: 1.65;
  font-size: 16px;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.nfip-page-section {
  padding: clamp(48px, 6vw, 80px) 0;
}
.nfip-page-section--surface { background: #fff; }
.nfip-page-section .nfip-container {
  width: min(100% - 2 * var(--nfip-gutter), var(--nfip-container));
  max-width: 100%;
  margin-inline: auto;
  min-width: 0;
}
.nfip-page-hero .nfip-container {
  max-width: 100%;
  min-width: 0;
}
.nfip-page-grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 36px;
  align-items: start;
}
.nfip-page-photo {
  min-height: 320px;
  border-radius: 14px;
  background: url("../img/5p.webp") center/cover no-repeat;
}
.nfip-page-photo--desk {
  background-image: url("../img/4p.webp");
}
.nfip-page-photo--legal {
  background-image: url("../img/22p.webp");
  background-position: center 40%;
  background-size: cover;
}
.nfip-page h2 {
  margin: 0 0 14px;
  font-size: clamp(26px, 3vw, 34px);
}
.nfip-page .nfip-lead {
  margin: 0 0 18px;
  color: var(--nfip-color-text-muted);
  line-height: 1.65;
}
.nfip-help-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(24px, 4vw, 40px);
  align-items: start;
  width: 100%;
  min-width: 0;
}
.nfip-help-layout > * { min-width: 0; }
.nfip-help-media {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--nfip-color-border);
  background: #fff;
  aspect-ratio: 3 / 2;
}
.nfip-help-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.nfip-help-copy h2 { margin-top: 0; }
.nfip-principles {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--nfip-color-border);
}
.nfip-principle {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--nfip-color-border);
}
.nfip-principle__num {
  font-family: var(--nfip-font-heading);
  font-size: 24px;
  font-weight: 700;
  color: var(--nfip-color-accent);
}
.nfip-principle h3 { margin: 0 0 6px; font-size: 18px; }
.nfip-principle p { margin: 0; color: var(--nfip-color-text-muted); line-height: 1.55; font-size: 14px; }

.nfip-licence-table-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  border: 1px solid var(--nfip-color-border);
  border-radius: 12px;
  background: #fff;
}
.nfip-licence-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 14px;
  background: #fff;
}
.nfip-licence-table th,
.nfip-licence-table td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--nfip-color-border);
  vertical-align: top;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.nfip-licence-table th {
  background: #0b3a5c;
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.nfip-licence-table tr:last-child td { border-bottom: 0; }
.nfip-licence-notes {
  margin-top: 18px;
  display: grid;
  gap: 8px;
}
.nfip-licence-notes li {
  color: var(--nfip-color-text-muted);
  font-size: 13px;
  line-height: 1.5;
}

.nfip-contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
  align-items: start;
  width: 100%;
  min-width: 0;
}
.nfip-contact-layout > * { min-width: 0; }
.nfip-contact-layout--form-left {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}
.nfip-contact-card,
.nfip-map-placeholder {
  background: #fff;
  border: 1px solid var(--nfip-color-border);
  border-radius: 14px;
  padding: 22px;
}
.nfip-contact-card h2 { margin-top: 0; }
.nfip-contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.nfip-contact-list li {
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.nfip-contact-list strong {
  display: block;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--nfip-color-accent);
  margin-bottom: 2px;
}
.nfip-map-placeholder {
  min-height: 280px;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--nfip-color-text-muted);
  background:
    linear-gradient(180deg, rgba(11,58,92,0.04), rgba(11,58,92,0.08)),
    repeating-linear-gradient(90deg, transparent, transparent 24px, rgba(11,58,92,0.04) 24px, rgba(11,58,92,0.04) 25px);
}
.nfip-contact-map-section {
  padding-top: 0;
}
.nfip-contact-map.elementor-widget-google_maps {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--nfip-color-border);
  background: #fff;
  box-shadow: var(--nfip-shadow-soft);
}
.nfip-contact-map .elementor-custom-embed {
  line-height: 0;
}
.nfip-contact-map iframe {
  display: block !important;
  width: 100% !important;
  height: 360px !important;
  border: 0 !important;
  max-width: 100%;
}
@media (max-width: 767px) {
  .nfip-contact-map iframe {
    height: 280px !important;
  }
}
.nfip-contact-form-panel {
  background: #fff;
  border: 1px solid var(--nfip-color-border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--nfip-shadow-soft);
}
.nfip-contact-form-panel .nfip-hero__panel-rail {
  background: #071f31;
  color: #fff;
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
}
.nfip-contact-form-panel .nfip-hero__panel-body { padding: 20px; }
.nfip-page form.wpcf7-101 .XuvktbZqA,
.nfip-page form.wpcf7-101 .ctf { display: grid !important; gap: 10px !important; }
.nfip-page form.wpcf7-101 input[type="text"],
.nfip-page form.wpcf7-101 input[type="email"] {
  width: 100% !important;
  min-height: 44px !important;
  border: 1px solid var(--nfip-color-border) !important;
  border-radius: 8px !important;
  padding: 10px 12px !important;
  box-sizing: border-box !important;
}
.nfip-page form.wpcf7-101 input[name="phone"] {
  padding-left: 90px !important;
  max-width: 100% !important;
}
.nfip-page form.wpcf7-101 .iti,
.nfip-page form.wpcf7-101 .LNPHfTYK,
.nfip-page form.wpcf7-101 .aCsmAuSPM {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
}
.nfip-page img {
  max-width: 100%;
  height: auto;
}
.nfip-page .nfip-page-hero__media img,
.nfip-page .nfip-page-figure img,
.nfip-page .nfip-help-media img {
  height: 100%;
  max-height: inherit;
}
.nfip-page form.wpcf7-101 input[type="submit"] {
  width: 100% !important;
  min-height: 48px !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: var(--nfip-color-accent) !important;
  color: #fff !important;
  font-weight: 700 !important;
}

.nfip-legal {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.nfip-legal > * {
  min-width: 0;
  max-width: 100%;
}
.nfip-legal__toc {
  position: sticky;
  top: 100px;
  background: #fff;
  border: 1px solid var(--nfip-color-border);
  border-radius: 12px;
  padding: 16px;
  width: 100%;
}
.nfip-legal__toc p {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--nfip-color-accent);
}
.nfip-legal__toc a {
  display: block;
  padding: 6px 0;
  color: var(--nfip-color-primary);
  text-decoration: none;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.nfip-legal__content {
  background: #fff;
  border: 1px solid var(--nfip-color-border);
  border-radius: 12px;
  padding: clamp(16px, 3vw, 32px);
  width: 100%;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.nfip-legal__content section + section {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--nfip-color-border);
}
.nfip-legal__content h2 {
  font-size: clamp(18px, 4.5vw, 22px);
  margin: 0 0 10px;
  overflow-wrap: anywhere;
}
.nfip-legal__content p,
.nfip-legal__content li {
  color: var(--nfip-color-text-muted);
  line-height: 1.65;
  font-size: 15px;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.nfip-legal__content a {
  overflow-wrap: anywhere;
  word-break: break-word;
}
.nfip-legal__content .nfip-licence-table-wrap {
  margin-top: 14px;
}

@media (max-width: 1024px) {
  .nfip-page-grid-2,
  .nfip-page-grid-2--flip,
  .nfip-page-hero__grid,
  .nfip-contact-layout,
  .nfip-help-layout,
  .nfip-legal {
    grid-template-columns: minmax(0, 1fr);
  }
  .nfip-page-grid-2--flip .nfip-page-figure {
    order: -1;
  }
  .nfip-page-hero__media,
  .nfip-page-figure {
    max-height: 280px;
  }
  .nfip-help-media {
    max-height: 280px;
    aspect-ratio: 16 / 9;
  }
  .nfip-legal__toc { position: static; }
  .nfip-page-hero h1 { max-width: none; }
}
@media (max-width: 767px) {
  .nfip-page-hero {
    padding: 40px 0 36px;
  }
  .nfip-page-section {
    padding: 40px 0;
  }
  .nfip-legal__content {
    padding: 16px;
  }
  .nfip-legal__toc {
    padding: 14px;
  }
  .nfip-licence-table {
    min-width: 480px;
    font-size: 13px;
  }
  .nfip-licence-table th,
  .nfip-licence-table td {
    padding: 12px 12px;
  }
  .nfip-contact-form-panel .nfip-hero__panel-body {
    padding: 16px;
  }
  .nfip-contact-form-panel .nfip-hero__panel-rail {
    padding: 12px 14px;
    gap: 8px;
    font-size: 11px;
  }
  .nfip-contact-card {
    padding: 16px;
  }
  .nfip-principle {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 10px;
  }
  .nfip-page form.wpcf7-101 input[type="text"],
  .nfip-page form.wpcf7-101 input[type="email"],
  .nfip-page form.wpcf7-101 input[name="phone"] {
    max-width: 100% !important;
  }
}
