:root {
  --ink: #071018;
  --navy: #0b1722;
  --mint: #6de2c2;
  --mint-soft: #dff8f1;
  --paper: #f3f7f6;
  --text: #1d2a30;
  --muted: #5d6d73;
  --line: rgba(7, 16, 24, 0.13);
  --white-line: rgba(255, 255, 255, 0.14);
  --max: 940px;
  --heading: "Avenir Next", "Segoe UI", Arial, sans-serif;
  --body: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--mint); outline-offset: 4px; }
.legal-shell { width: min(calc(100% - 40px), 1180px); margin: 0 auto; }
.legal-header {
  background: var(--ink);
  border-bottom: 1px solid var(--white-line);
}
.legal-nav {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.legal-logo { display: block; width: 166px; height: auto; }
.back-link {
  color: #d8e1e4;
  text-decoration: none;
  font-size: 0.9rem;
  border: 1px solid var(--white-line);
  border-radius: 999px;
  padding: 10px 16px;
}
.back-link:hover { color: var(--mint); border-color: var(--mint); }
.legal-main {
  padding: 82px 0 105px;
  background:
    radial-gradient(circle at 88% 8%, rgba(109, 226, 194, 0.18), transparent 28%),
    var(--paper);
}
.legal-article {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: clamp(30px, 6vw, 72px);
  box-shadow: 0 30px 90px rgba(7, 16, 24, 0.08);
}
.legal-kicker {
  margin: 0 0 18px;
  color: #18765e;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
h1, h2, h3 { font-family: var(--heading); color: var(--ink); }
h1 {
  margin: 0;
  font-size: clamp(2.65rem, 7vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
h2 {
  margin: 52px 0 12px;
  padding-top: 4px;
  font-size: 1.4rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
}
h3 { margin: 26px 0 8px; font-size: 1.04rem; }
p { margin: 0 0 17px; }
ul { margin: 7px 0 20px; padding-left: 24px; }
li { margin: 7px 0; }
.updated { margin: 17px 0 30px; color: var(--muted); font-size: 0.86rem; }
.legal-lead {
  margin: 0 0 42px;
  max-width: 760px;
  color: #3e5057;
  font-size: 1.13rem;
}
.legal-section { padding-top: 1px; border-top: 1px solid var(--line); }
.legal-section p, .legal-section li { color: var(--muted); }
.legal-note {
  margin: 32px 0;
  padding: 22px 24px;
  border-left: 3px solid #1f9c7c;
  background: var(--mint-soft);
  border-radius: 0 14px 14px 0;
  color: #24453d;
}
.legal-note strong { color: var(--ink); }
.contact-card {
  margin-top: 22px;
  padding: 24px;
  background: var(--ink);
  color: #dbe5e7;
  border-radius: 17px;
}
.contact-card strong { display: block; color: #fff; margin-bottom: 5px; }
.contact-card a { color: var(--mint); }
.legal-footer { background: var(--ink); color: #8ea0a7; padding: 34px 0; }
.legal-footer-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  font-size: 0.8rem;
}
.legal-footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 14px 20px; }
.legal-footer a { color: #cbd6d9; text-decoration: none; }
.legal-footer a:hover { color: var(--mint); }

@media (max-width: 700px) {
  body { font-size: 16px; }
  .legal-shell, .legal-article { width: min(calc(100% - 28px), var(--max)); }
  .legal-nav { min-height: 78px; }
  .legal-logo { width: 132px; }
  .back-link { padding: 8px 12px; font-size: 0.8rem; }
  .legal-main { padding: 46px 0 70px; }
  .legal-article { border-radius: 20px; }
  h2 { margin-top: 40px; }
  .legal-footer-row { flex-direction: column; }
  .legal-footer-links { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}


/* =========================================================
   FP Consultancy — unified dark legal pages
   ========================================================= */

body {
  background: #0b1722;
  color: #d8e3e6;
}

.legal-main {
  background:
    radial-gradient(circle at 88% 8%, rgba(109, 226, 194, 0.075), transparent 28%),
    linear-gradient(180deg, #0b1722 0%, #09141d 100%);
}

.legal-article {
  background: #102330;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.22);
}

h1,
h2,
h3 {
  color: #ffffff;
}

.legal-kicker {
  color: var(--mint);
}

.updated,
.legal-lead,
.legal-section p,
.legal-section li {
  color: #b7c6cb;
}

.legal-section {
  border-top-color: rgba(255, 255, 255, 0.12);
}

.legal-note {
  border-left-color: var(--mint);
  background: #102b2a;
  color: #d0e0dc;
}

.legal-note strong {
  color: #ffffff;
}

.contact-card {
  background: #071018;
  border: 1px solid rgba(255, 255, 255, 0.11);
}

.legal-article a {
  color: var(--mint);
  text-underline-offset: 3px;
}

.legal-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.10);
}


/* =========================================================
   FP Consultancy — legal mobile width & typography fix
   26-09-2026
   ========================================================= */

@media (max-width: 700px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .legal-shell,
  .legal-article,
  .legal-nav,
  .legal-footer-row,
  .legal-footer-links {
    min-width: 0;
    max-width: 100%;
  }

  .legal-main,
  .legal-header,
  .legal-footer {
    max-width: 100%;
    overflow-x: clip;
  }

  h1,
  h2,
  h3,
  p,
  li,
  a {
    max-width: 100%;
    hyphens: auto;
    -webkit-hyphens: auto;
    overflow-wrap: anywhere;
  }

  h1 {
    font-size: clamp(1.95rem, 8.8vw, 2.35rem);
    line-height: 1.08;
    letter-spacing: -0.015em;
  }

  h2 {
    font-size: 1.25rem;
    line-height: 1.3;
  }

  .legal-article {
    padding: 28px 22px;
  }

  .back-link {
    max-width: 48%;
    white-space: normal;
    text-align: center;
    line-height: 1.2;
  }
}

@media (max-width: 390px) {
  .legal-shell,
  .legal-article {
    width: calc(100% - 24px);
  }

  .legal-logo {
    width: 118px;
  }

  .back-link {
    font-size: 0.74rem;
    padding: 8px 10px;
  }

  h1 {
    font-size: 1.9rem;
  }
}


/* =========================================================
   Bilingual legal-page navigation
   ========================================================= */
.legal-nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.legal-language-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border: 1px solid var(--white-line);
  border-radius: 999px;
  color: #80949b;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1;
}
.legal-language-switch a {
  color: #a9bbc0;
  text-decoration: none;
}
.legal-language-switch a:hover,
.legal-language-switch a.active { color: var(--mint); }
.legal-language-switch span { color: rgba(255,255,255,.25); }
@media (max-width: 700px) {
  .legal-nav { gap: 12px; }
  .legal-nav-actions { gap: 8px; }
  .legal-language-switch { padding: 7px 9px; font-size: .7rem; }
  .back-link { padding: 8px 10px; }
}
@media (max-width: 390px) {
  .back-link { font-size: .7rem; }
  .legal-language-switch { font-size: .66rem; padding: 6px 8px; }
}


/* =========================================================
   MOBILE LEGAL LANGUAGE SWITCH — clearer segmented buttons
   ========================================================= */
@media (max-width: 700px) {
  .legal-language-switch {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px !important;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 999px;
    background: rgba(16,35,48,.92);
  }

  .legal-language-switch span {
    display: none;
  }

  .legal-language-switch a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    min-width: 36px;
    height: 32px;
    padding: 0;
    border-radius: 999px;
    color: #d8e1e4;
    font-size: .69rem;
    font-weight: 800;
    letter-spacing: .06em;
    line-height: 1;
  }

  .legal-language-switch a.active,
  .legal-language-switch a[aria-current="true"] {
    background: var(--mint);
    color: var(--ink);
  }
}

@media (max-width: 390px) {
  .legal-language-switch a {
    width: 32px;
    min-width: 32px;
    height: 30px;
    font-size: .65rem;
  }
}


/* =========================================================
   LEGAL LANGUAGE SWITCH — flag buttons
   ========================================================= */
.legal-language-switch a {
  font-size: 1rem;
  letter-spacing: 0;
  line-height: 1;
  min-width: 44px;
  text-align: center;
}

@media (max-width: 700px) {
  .legal-language-switch a {
    width: 40px;
    min-width: 40px;
    height: 32px;
    font-size: 1rem;
  }
}

@media (max-width: 390px) {
  .legal-language-switch a {
    width: 36px;
    min-width: 36px;
    height: 30px;
    font-size: .95rem;
  }
}


/* =========================================================
   LEGAL LANGUAGE SWITCH — tighter flags with visible pipe
   ========================================================= */
.legal-language-switch {
  gap: 4px !important;
  padding: 5px 8px !important;
}

.legal-language-switch a {
  min-width: 34px !important;
  font-size: 1rem !important;
  line-height: 1 !important;
}

.legal-language-switch span {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  margin: 0 1px;
  color: rgba(255,255,255,.42) !important;
  font-size: .92rem !important;
  font-weight: 700 !important;
  line-height: 1 !important;
}

@media (max-width: 700px) {
  .legal-language-switch {
    gap: 4px !important;
    padding: 3px 6px !important;
  }

  .legal-language-switch a {
    width: 28px !important;
    min-width: 28px !important;
    height: 28px !important;
    font-size: .92rem !important;
  }

  .legal-language-switch a.active,
  .legal-language-switch a[aria-current="true"] {
    background: rgba(109, 226, 194, 0.18) !important;
    color: var(--mint) !important;
  }
}

@media (max-width: 390px) {
  .legal-language-switch a {
    width: 26px !important;
    min-width: 26px !important;
    height: 26px !important;
    font-size: .88rem !important;
  }

  .legal-language-switch span {
    font-size: .86rem !important;
  }
}


/* =========================================================
   LINKEDIN BUTTON — legal footer
   ========================================================= */
.legal-linkedin-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  padding: 8px 12px;
  border: 1px solid rgba(109, 226, 194, .42);
  border-radius: 999px;
  color: #dbe7e8 !important;
  background: rgba(109, 226, 194, .06);
  font-size: .76rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.legal-linkedin-button:hover {
  color: var(--mint) !important;
  border-color: var(--mint);
  background: rgba(109, 226, 194, .13);
}

.legal-linkedin-button .linkedin-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 21px;
  height: 21px;
  border-radius: 4px;
  background: var(--mint);
  color: var(--ink);
  font-family: Arial, sans-serif;
  font-size: .7rem;
  font-weight: 900;
}

@media (max-width: 700px) {
  .legal-linkedin-button {
    width: max-content;
  }
}


/* =========================================================
   LINKEDIN — compact legal footer icon
   ========================================================= */
.legal-linkedin-button {
  display: none !important;
}

.legal-footer-linkedin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  text-decoration: none !important;
}

.legal-footer-linkedin .linkedin-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 27px;
  height: 27px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 7px;
  color: #dce6e8;
  background: rgba(255,255,255,.035);
  transition: color .2s ease, border-color .2s ease, background .2s ease, transform .2s ease;
}

.legal-footer-linkedin .linkedin-icon > span {
  font-family: Arial, Helvetica, sans-serif;
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: 1;
}

.legal-footer-linkedin:hover .linkedin-icon {
  color: var(--ink);
  border-color: var(--mint);
  background: var(--mint);
  transform: translateY(-1px);
}

@media (max-width: 700px) {
  .legal-footer-linkedin {
    width: max-content;
  }
}


/* =========================================================
   LINKEDIN — official brand color treatment
   ========================================================= */
.legal-footer-linkedin .linkedin-icon {
  background: #0A66C2 !important;
  border-color: #0A66C2 !important;
  color: #ffffff !important;
}

.legal-footer-linkedin:hover .linkedin-icon {
  background: #084F99 !important;
  border-color: #084F99 !important;
  color: #ffffff !important;
}

/* =========================================================
   MOBILE LEGAL FOOTER — hide LinkedIn icon
   ========================================================= */
@media (max-width: 700px) {
  .legal-footer-linkedin {
    display: none !important;
  }
}

/* =========================================================
   LEGAL LANGUAGE SWITCH — optically centered flags in equal cells
   ========================================================= */
.legal-language-switch {
  display: inline-grid !important;
  grid-template-columns: 34px 8px 34px;
  align-items: center;
  justify-items: center;
}

.legal-language-switch a {
  display: grid !important;
  place-items: center !important;
  width: 34px !important;
  min-width: 34px !important;
  height: 28px !important;
  margin: 0 !important;
  padding: 0 !important;
  text-align: center !important;
  line-height: 1 !important;
}

.legal-language-switch span {
  display: grid !important;
  place-items: center !important;
  width: 8px !important;
  margin: 0 !important;
  text-align: center !important;
}

@media (max-width: 700px) {
  .legal-language-switch {
    grid-template-columns: 30px 8px 30px !important;
    column-gap: 2px !important;
  }

  .legal-language-switch a {
    width: 30px !important;
    min-width: 30px !important;
    height: 30px !important;
  }
}

@media (max-width: 390px) {
  .legal-language-switch {
    grid-template-columns: 28px 7px 28px !important;
  }

  .legal-language-switch a {
    width: 28px !important;
    min-width: 28px !important;
    height: 28px !important;
  }

  .legal-language-switch span {
    width: 7px !important;
  }
}


/* =========================================================
   MOBILE LEGAL LINKEDIN — show Company Page icon in footer
   ========================================================= */
@media (max-width: 700px) {
  .legal-footer-linkedin {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: max-content;
  }
}
