/* ==========================================================================
   MOVTEK – standalone legal pages (privacy-policy-new.html,
   terms-and-conditions.html, datadelete.html)

   Plain CSS (no build step). Mirrors the design tokens of the main Next.js
   site: Poppins + DM Sans, brand teal #4aa8a8, logo teal #0aa6a6,
   link blue #1f6f8f, floating white header and the gradient footer.
   Breakpoints follow Tailwind: sm 640 / md 768 / lg 1024 / xl 1280 / 2xl 1536.
   ========================================================================== */

/* ---------- Fonts (self-hosted, no external requests) ---------- */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/poppins-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/poppins-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/poppins-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/poppins-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/dm-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/dm-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/dm-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/dm-sans-latin-700-normal.woff2") format("woff2"); }

/* ---------- Tokens ---------- */
:root {
  --background: #ffffff;
  --foreground: #111111;
  --brand: #4aa8a8;
  --brand-hover: #3f9696;
  --logo: #0aa6a6;
  --link: #1f6f8f;
  --link-hover: #195d78;
  --footer-bg: #2f6f8f;

  --n-50: #fafafa;
  --n-100: #f5f5f5;
  --n-200: #e5e5e5;
  --n-300: #d4d4d4;
  --n-400: #a3a3a3;
  --n-500: #737373;
  --n-600: #525252;
  --n-700: #404040;
  --n-800: #262626;

  --font-sans: "Poppins", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-heading: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
address { font-style: normal; }
button { font: inherit; color: inherit; cursor: pointer; }

.heading { font-family: var(--font-heading); }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  background: var(--link);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: top 150ms ease;
}
.skip-link:focus { top: 1rem; }

:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: 1920px;
  margin-inline: auto;
  padding-inline: 1rem;
}
@media (min-width: 640px)  { .container { padding-inline: 1.5rem; } }
@media (min-width: 1280px) { .container { padding-inline: 2rem; } }

/* ==========================================================================
   Header (floating card, same as the main site)
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding-top: 0.75rem;
}
@media (min-width: 640px)  { .site-header { padding-top: 1rem; } }
@media (min-width: 1280px) { .site-header { padding-top: clamp(0.75rem, 1vw, 1.75rem); } }

.header-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 4rem;
  padding: 0 0.75rem 0 1.25rem;
  background: #fff;
  border: 1px solid var(--n-200);
  border-radius: 1rem;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.1);
}
@media (min-width: 640px) {
  .header-bar { height: 72px; padding-left: 2rem; }
}
@media (min-width: 1280px) {
  .header-bar {
    height: clamp(4.5rem, 4.3vw, 7.5rem);
    gap: clamp(1rem, 1.5vw, 3rem);
    border-radius: clamp(1rem, 0.9vw, 1.75rem);
    padding-inline: clamp(1.25rem, 2vw, 3.5rem);
  }
}

.logo-link { flex-shrink: 0; display: block; line-height: 0; }
.logo-link img { display: block; width: 8rem; height: auto; }
@media (min-width: 640px)  { .logo-link img { width: 10rem; } }
@media (min-width: 1280px) { .logo-link img { width: clamp(9.5rem, 10vw, 17rem); } }

/* Desktop nav (non-interactive labels, like the main site) */
.main-nav {
  display: none;
  flex: 1;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: clamp(1.25rem, 2.6vw, 5rem);
}
.nav-item {
  cursor: default;
  user-select: none;
  white-space: nowrap;
  font-size: clamp(0.9375rem, 0.9vw, 1.6rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.025em;
  color: var(--n-700);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 2px;
  text-underline-offset: 10px;
  transition: color 200ms, text-decoration-color 200ms;
}
.nav-item:hover { color: var(--logo); text-decoration-color: var(--logo); }

.header-actions {
  display: none;
  flex-shrink: 0;
  align-items: center;
  gap: clamp(0.5rem, 0.7vw, 1.25rem);
}

@media (min-width: 1280px) {
  .main-nav { display: flex; }
  .header-actions { display: flex; }
  .menu-wrap { display: none; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.75rem;
  padding-inline: 1.25rem;
  white-space: nowrap;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  text-decoration: none;
  border-radius: 0.5rem;
  border: 1px solid transparent;
  background: transparent;
  color: var(--n-800);
  transition: color 200ms, background-color 200ms, border-color 200ms;
}
.btn-lg { height: 3rem; padding-inline: 1.5rem; }
.btn-outline { border-color: var(--n-300); }
.btn-outline:hover { border-color: var(--n-400); background: var(--n-50); }
.btn-ghost:hover { background: var(--n-100); }
.btn-brand { background: var(--brand); color: #fff; }
.btn-brand:hover { background: var(--brand-hover); }
.btn-brand:focus-visible { outline-color: var(--brand); }
.btn-solid { background: var(--link); color: #fff; }
.btn-solid:hover { background: var(--link-hover); }
.btn-static { pointer-events: none; cursor: default; user-select: none; }

@media (min-width: 1280px) {
  .header-actions .btn {
    height: clamp(2.5rem, 2.6vw, 4.5rem);
    padding-inline: clamp(1rem, 1.2vw, 2.25rem);
    font-size: clamp(0.9375rem, 0.9vw, 1.6rem);
  }
}

/* Mobile / tablet menu */
.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  border-radius: 0.5rem;
  background: transparent;
  color: var(--n-800);
  transition: background-color 200ms;
}
.menu-toggle:hover { background: var(--n-100); }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

.menu-panel {
  position: absolute;
  inset: 100% 0 auto 0;
  margin-top: 0.5rem;
  max-height: calc(100svh - 6.5rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 1.25rem;
  background: #fff;
  border: 1px solid var(--n-200);
  border-radius: 1rem;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.12);
}
.menu-panel[hidden] { display: none; }
.menu-panel .nav-item {
  display: block;
  padding: 0.75rem;
  font-size: 1rem;
  text-underline-offset: 6px;
  border-radius: 0.5rem;
}
.menu-panel .menu-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--n-200);
}

/* ==========================================================================
   Page content
   ========================================================================== */
main { flex: 1; display: flex; flex-direction: column; }

/* Title band – sits behind the floating header */
.legal-hero {
  background: linear-gradient(180deg, #e6f2f2 0%, #f4f9f9 70%, #ffffff 100%);
  padding-top: clamp(7.5rem, 10vw, 12rem);
  padding-bottom: clamp(2.5rem, 4vw, 5rem);
}
.legal-hero-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 1200px;
  margin-inline: auto;
}
@media (min-width: 1024px) { .legal-hero-inner, .legal-body-inner { padding-inline: 1rem; } }

.eyebrow {
  font-family: var(--font-heading);
  font-size: clamp(0.8125rem, 0.9vw, 1.25rem);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--brand);
}
.legal-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.4vw, 4.5rem);
  font-weight: 600;
  line-height: 1.15;
  text-wrap: balance;
  color: var(--n-800);
}
.legal-hero .lede {
  max-width: 48rem;
  font-family: var(--font-heading);
  font-size: clamp(1rem, 1.2vw, 1.75rem);
  line-height: 1.6;
  color: var(--n-600);
}
.effective {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  color: var(--n-500);
}
.effective strong { font-weight: 600; color: var(--n-700); }
@media (min-width: 640px) { .effective { font-size: 1rem; } }

/* Body */
.legal-body { background: #fff; padding-bottom: clamp(3rem, 6vw, 8rem); }
.legal-body-inner {
  display: grid;
  gap: 2.5rem;
  max-width: 1200px;
  margin-inline: auto;
}
.legal-body-inner.has-toc { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1024px) {
  .legal-body-inner.has-toc { grid-template-columns: 260px minmax(0, 1fr); gap: 3.5rem; }
}

/* Table of contents */
.toc-wrap { min-width: 0; }
@media (min-width: 1024px) { .toc-wrap { position: sticky; top: 7rem; align-self: start; } }

.toc {
  border: 1px solid var(--n-200);
  border-radius: 1rem;
  background: #f7fbfb;
}
.toc summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  color: var(--n-800);
}
.toc summary::-webkit-details-marker { display: none; }
.toc summary .chev { width: 1.25rem; height: 1.25rem; transition: transform 200ms; }
.toc[open] summary .chev { transform: rotate(180deg); }
.toc-list {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  padding: 0 1.25rem 1.25rem;
  max-height: 60svh;
  overflow-y: auto;
}
.toc-list a {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  line-height: 1.375;
  color: var(--n-600);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  transition: color 200ms, text-decoration-color 200ms;
}
.toc-list a:hover,
.toc-list a.is-active { color: var(--logo); text-decoration-color: var(--logo); }
.toc-list a.is-active { font-weight: 500; }

@media (min-width: 1024px) {
  .toc summary { pointer-events: none; cursor: default; padding-bottom: 0; }
  .toc summary .chev { display: none; }
  .toc-list { padding-top: 1rem; max-height: calc(100svh - 12rem); }
}

/* Article */
.article { max-width: 860px; min-width: 0; }
.article h2 {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--n-200);
  scroll-margin-top: 7rem;
  font-family: var(--font-heading);
  font-size: clamp(1.375rem, 1.7vw, 2.25rem);
  font-weight: 600;
  line-height: 1.3;
  color: var(--n-800);
}
.article > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.article h3 {
  margin-top: 2rem;
  scroll-margin-top: 7rem;
  font-family: var(--font-heading);
  font-size: clamp(1.125rem, 1.3vw, 1.75rem);
  font-weight: 600;
  line-height: 1.35;
  color: var(--link);
}
.article p {
  margin-top: 1rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  line-height: 1.8;
  white-space: pre-line;
  overflow-wrap: anywhere;
  color: var(--n-600);
}
@media (min-width: 640px) { .article p, .article .bullets li, .callout { font-size: 1.0625rem; } }

.article strong { font-weight: 600; color: var(--n-800); }

.bullets { display: flex; flex-direction: column; gap: 0.625rem; margin-top: 1rem; }
.bullets li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  line-height: 1.75;
  overflow-wrap: anywhere;
  color: var(--n-600);
}
.bullets li::before {
  content: "";
  flex-shrink: 0;
  width: 0.375rem;
  height: 0.375rem;
  margin-top: 0.7em;
  border-radius: 9999px;
  background: var(--brand);
}

.callout {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--brand);
  border-radius: 0.75rem;
  background: #eef7f7;
  font-family: var(--font-heading);
  font-size: 1rem;
  line-height: 1.75;
  overflow-wrap: anywhere;
  color: var(--n-700);
}

.table-wrap {
  margin-top: 1.5rem;
  overflow: hidden;
  border: 1px solid var(--n-200);
  border-radius: 0.75rem;
}
.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 1rem;
}
.table-wrap tr { border-bottom: 1px solid var(--n-200); }
.table-wrap tr:last-child { border-bottom: 0; }
.table-wrap th {
  padding: 0.75rem 1.25rem;
  vertical-align: top;
  background: #f7fbfb;
  font-weight: 600;
  color: var(--n-800);
}
.table-wrap td {
  padding: 0.75rem 1.25rem;
  line-height: 1.7;
  overflow-wrap: anywhere;
  color: var(--n-600);
}
@media (min-width: 640px) { .table-wrap th { width: 32%; } }
@media (max-width: 639px) {
  .table-wrap tr { display: flex; flex-direction: column; }
}

.article a:not(.btn) {
  font-weight: 500;
  color: var(--link);
  text-decoration: underline;
  text-decoration-color: rgba(31, 111, 143, 0.3);
  text-underline-offset: 4px;
  transition: color 200ms, text-decoration-color 200ms;
}
.article a:not(.btn):hover { color: var(--logo); text-decoration-color: var(--logo); }
.action { margin-top: 1.5rem; }

/* Related policies */
.related { margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid var(--n-200); }
.related-title {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  color: var(--n-800);
}
.related ul { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1rem; }
.article .related a {
  display: inline-flex;
  align-items: center;
  height: 2.75rem;
  padding-inline: 1.25rem;
  border: 1px solid var(--n-300);
  border-radius: 0.5rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--n-800);
  transition: color 200ms, border-color 200ms;
}
.article .related a:hover { color: var(--logo); border-color: var(--logo); }

/* ==========================================================================
   Footer (same as the Next.js footer)
   ========================================================================== */
.site-footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--footer-bg) url("/images/Footer/Bg.png") center / cover no-repeat;
  color: #fff;
}

.footer-main { padding-top: 2.75rem; }
@media (min-width: 640px)  { .footer-main { padding-top: 3rem; } }
@media (min-width: 1280px) { .footer-main { padding-inline: 2.5rem; } }
@media (min-width: 1536px) { .footer-main { padding-inline: 150px; } }

.footer-grid { display: grid; gap: 2.25rem; }
@media (min-width: 768px)  { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 1.5rem; } }

.footer-brand { display: flex; flex-direction: column; gap: 1.25rem; }
.footer-brand .logo { display: block; width: fit-content; cursor: default; line-height: 0; }
.footer-brand .logo img { display: block; width: 170px; height: auto; }
@media (min-width: 640px) { .footer-brand .logo img { width: 210px; } }

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 1rem;
  line-height: 1.75rem;
}
@media (min-width: 640px) { .footer-contact { font-size: 1.125rem; } }
.footer-contact li { display: flex; align-items: center; gap: 1rem; }
.footer-contact li.top { align-items: flex-start; }
.footer-contact address { max-width: 340px; }
.footer-contact .ico { width: 1.25rem; height: 1.25rem; flex-shrink: 0; }
.footer-contact li.top .ico { margin-top: 0.375rem; }

.footer-link {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
  transition: color 200ms, text-decoration-color 200ms;
}
.footer-link:hover,
.footer-link:focus-visible { color: #fff; text-decoration-color: #fff; }
.footer-link:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }

.footer-col h3 {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 500;
}
@media (min-width: 640px)  { .footer-col h3 { font-size: 1.25rem; } }
@media (min-width: 1024px) { .footer-col { padding-top: 0.5rem; } }
.footer-col ul { display: flex; flex-direction: column; gap: 1rem; margin-top: 1.25rem; }
.footer-col a,
.footer-col .footer-text {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.65);
}
.footer-col .footer-text { cursor: default; }
@media (min-width: 640px) { .footer-col a, .footer-col .footer-text { font-size: 1.125rem; } }
.footer-col a[aria-current="page"] { color: #fff; }

.footer-rule { margin-top: 2.5rem; }
@media (min-width: 640px)  { .footer-rule { margin-top: 3.5rem; } }
@media (min-width: 1024px) { .footer-rule { margin-top: 4rem; } }
.footer-rule div { border-top: 1px solid rgba(255, 255, 255, 0.2); }

.footer-bottom { padding-block: 2rem; }
@media (min-width: 640px)  { .footer-bottom { padding-block: 2.25rem; } }
@media (min-width: 1280px) { .footer-bottom { padding-inline: 2.5rem; } }
@media (min-width: 1536px) { .footer-bottom { padding-inline: 150px; } }
.footer-bottom-row { display: flex; flex-direction: column; align-items: flex-start; gap: 1.5rem; }
@media (min-width: 640px) { .footer-bottom-row { flex-direction: row; align-items: center; gap: 3rem; } }
.socials { display: flex; align-items: center; gap: 1.5rem; }
@media (min-width: 640px) { .socials { gap: 2rem; } }
.socials span {
  display: block;
  cursor: default;
  color: rgba(255, 255, 255, 0.8);
  transition: color 200ms;
}
.socials span:hover { color: #fff; }
.socials svg { display: block; width: 1.5rem; height: 1.5rem; }
.copyright { font-size: 0.875rem; color: rgba(255, 255, 255, 0.5); }
@media (min-width: 640px) { .copyright { font-size: 1rem; } }

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .toc-wrap, .related, .skip-link, .action { display: none !important; }
  .legal-hero { padding-top: 0; background: none; }
  .legal-body-inner { display: block; }
  .article h2 { break-after: avoid; }
  .article p, .bullets li { color: #000; }
  a { color: #000 !important; text-decoration: none !important; }
}
