/*
 * Shared styles for the static (non-Flutter) pages: /support, and /privacy next.
 *
 * These pages are plain HTML served straight by nginx so their content is in
 * the raw response (no JS needed), which the App Store / Google Play reviewers
 * and automated checkers require. Colors and fonts mirror lib/constant/
 * app_colors.dart and AppFont in lib/constant/app_strings.dart.
 */

/* Same font files the Flutter app bundles (pubspec.yaml), copied into the
   build at /assets/assets/fonts/ by `flutter build web`. */
@font-face { font-family: "Libre Baskerville"; font-weight: 400; font-display: swap;
  src: url("/assets/assets/fonts/Libre_Baskerville/LibreBaskerville-Regular.ttf") format("truetype"); }
@font-face { font-family: "Libre Baskerville"; font-weight: 700; font-display: swap;
  src: url("/assets/assets/fonts/Libre_Baskerville/LibreBaskerville-Bold.ttf") format("truetype"); }
@font-face { font-family: "Libre Franklin"; font-weight: 400; font-display: swap;
  src: url("/assets/assets/fonts/Libre_Franklin/LibreFranklin-Regular.ttf") format("truetype"); }
@font-face { font-family: "Libre Franklin"; font-weight: 500; font-display: swap;
  src: url("/assets/assets/fonts/Libre_Franklin/LibreFranklin-Medium.ttf") format("truetype"); }
@font-face { font-family: "Libre Franklin"; font-weight: 600; font-display: swap;
  src: url("/assets/assets/fonts/Libre_Franklin/LibreFranklin-SemiBold.ttf") format("truetype"); }

:root {
  --blue: #396ea8;         /* AppColors.blue396EA8 — primary brand blue */
  --blue-dark: #152943;    /* AppColors.blue152943 */
  --blue-ink: #2f4e6b;     /* AppColors.blue2F4E6B */
  --blue-tint: #eff7fe;    /* AppColors.blueEFF7FE */
  --blue-tint-2: #d8ecfb;  /* AppColors.blueD8ECFB */
  --text: #191919;         /* AppColors.black191919 */
  --muted: #5d5d5d;        /* AppColors.grey5D5D5D */
  --border: #d1d5dc;       /* AppColors.greyD1D5DC */
  --error: #b75555;        /* AppColors.redB75555 */
  --bg: #ffffff;

  --font-heading: "Libre Baskerville", Georgia, "Times New Roman", serif;
  --font-body: "Libre Franklin", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
}

a { color: var(--blue); }
a:hover { color: var(--blue-dark); }

.wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 20px;
}

/*
 * Header — mirrors CommonWidget.designableAppBar (lib/components/common_widget.dart).
 * Flutter sizes with flutter_screenutil against a 1920px design width at >=992px
 * (`.w` / `.sp`), so --u is one design pixel; heights there are fixed px.
 */
.site-header {
  --u: calc(100vw / 1920);
  position: relative;
  height: 173px;
  background: url("/static/header_top_bg.svg") 0 0 / 100% 100% no-repeat;
  font-family: var(--font-heading);
}
.hdr-row {
  display: flex;
  align-items: center;
  height: 97px;
  padding: 0 calc(94 * var(--u)) 0 calc(110 * var(--u));
}
.hdr-burger { display: none; }
.hdr-logo { display: block; line-height: 0; }
.hdr-logo img {
  width: calc(312 * var(--u));
  height: 53px;
  object-fit: contain;
}
.hdr-nav {
  display: flex;
  align-items: center;
  gap: calc(55 * var(--u));
  margin-left: auto;
  padding-right: calc(55 * var(--u));
}
.hdr-menu { position: relative; }
.hdr-menu-title {
  min-width: 64px;
  min-height: 40px;
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  font: 400 calc(22 * var(--u)) / 1.2 var(--font-heading);
  cursor: pointer;
}
.hdr-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 50;
  padding: 4px 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .3);
  white-space: nowrap;
}
.hdr-menu:hover .hdr-dropdown,
.hdr-menu:focus-within .hdr-dropdown { display: block; }
.hdr-dropdown a {
  display: block;
  padding: 6.4px 16px;
  color: #000;
  font: 700 11.2px / 1 var(--font-heading);
  text-decoration: none;
}
.hdr-dropdown a:hover, .hdr-dropdown a:focus-visible { background: rgba(0, 0, 0, .04); color: #000; }
.hdr-portal {
  position: relative;
  display: block;
  flex: none;
  width: calc(216 * var(--u));
  height: 97px;
  text-decoration: none;
}
.hdr-portal img { width: 100%; height: 100%; object-fit: contain; }
.hdr-portal span {
  position: absolute;
  top: 53px;
  left: 5px;
  right: 5px;
  text-align: center;
  color: #fff;
  font: 400 calc(22 * var(--u)) / 1.2 var(--font-heading);
  white-space: nowrap;
}

/* Mobile header + drawer (Flutter switches layouts below 992px). */
@media (max-width: 991.98px) {
  .site-header { height: 92px; }
  .hdr-row { height: 46px; padding: 0 18px; }
  .hdr-burger {
    display: flex;
    align-items: center;
    height: 24px;
    margin-right: 10px;
    padding: 0;
    border: 0;
    background: none;
    color: #fff;
    cursor: pointer;
  }
  .hdr-logo img { width: 156px; height: 27px; }
  .hdr-nav { display: none; }
  .hdr-portal { width: 84px; height: 38px; margin: 8px 0 0 auto; }
  .hdr-portal span { top: 20px; font-size: 10px; }
}

.drawer-scrim {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(0, 0, 0, .54);
}
.drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  width: 304px;
  max-width: 85vw;
  overflow-y: auto;
  background: #79a8d3; /* AppColors.blue79A8D3 */
  border-radius: 0 16px 16px 0;
  font-family: var(--font-heading);
}
.drawer[hidden], .drawer-scrim[hidden] { display: none; }
.drawer-logo {
  display: block;
  margin: 12px 40px 6px 8px;
  aspect-ratio: 936 / 166;
  background: #152943; /* logo tinted AppColors.blue152943, as in drawerWidget */
  -webkit-mask: url("/assets/assets/images/png/service_squared_title.png") center / contain no-repeat;
  mask: url("/assets/assets/images/png/service_squared_title.png") center / contain no-repeat;
}
.drawer details { border-bottom: 1px solid rgba(255, 255, 255, .2); }
.drawer summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  color: #fff;
  font-size: 16px;
  line-height: 1.2;
  cursor: pointer;
  list-style: none;
}
.drawer summary::-webkit-details-marker { display: none; }
.drawer summary::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-right: 6px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
  transition: transform .2s;
}
.drawer details[open] summary::after { transform: rotate(-135deg); }
.drawer details a {
  display: block;
  padding: 6.4px 16px;
  color: #fff;
  font-size: 12px;
  text-decoration: none;
}
.drawer details a:last-child { margin-bottom: 8px; }

/* Hero */
.hero {
  padding: 24px 0 32px;
}
h1, h2, h3 {
  font-family: var(--font-heading);
  color: var(--blue-dark);
  line-height: 1.25;
}
h1 { font-size: 40px; margin: 0 0 16px; }
h2 { font-size: 26px; margin: 48px 0 14px; }
h3 { font-size: 18px; margin: 28px 0 6px; }
.lede { font-size: 19px; color: var(--blue-ink); margin: 0; max-width: 640px; }

main { padding-bottom: 64px; }
main p { margin: 0 0 14px; }

/* Contact details */
.contact-table {
  width: 100%;
  margin: 8px 0 16px;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--blue-tint);
  border: 1px solid var(--blue-tint-2);
  border-radius: 12px;
}
.contact-table th, .contact-table td { padding: 10px 20px; text-align: left; vertical-align: top; }
.contact-table th { width: 1%; white-space: nowrap; color: var(--blue-dark); font-weight: 600; }
.contact-table tr + tr th, .contact-table tr + tr td { border-top: 1px solid var(--blue-tint-2); }
.contact-table a { overflow-wrap: anywhere; }

/* "On this page" jump list */
.jump {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 28px 0 0;
  padding: 16px 20px;
  background: var(--blue-tint);
  border: 1px solid var(--blue-tint-2);
  border-radius: 12px;
  font-size: 15px;
}
section[id], h2[id] { scroll-margin-top: 24px; }

/* Tables inside FAQ answers */
.data-table { width: 100%; margin: 0 0 14px; border-collapse: collapse; font-size: 15px; }
.data-table th, .data-table td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--blue-tint-2); }
.data-table th { color: var(--blue-dark); background: var(--blue-tint); }
main ol { margin: 0 0 14px; padding-left: 22px; }
main ol li { margin: 0 0 6px; }

/* Privacy policy */
.policy-meta { margin: 0; color: var(--blue-ink); font-size: 15px; }
.policy .jump { margin: 0 0 28px; }
.table-wrap { margin: 0 0 14px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-wrap .data-table { margin: 0; }
.policy ul { margin: 0 0 14px; padding-left: 22px; }
.policy li { margin: 0 0 8px; }
.policy-copy { margin-top: 40px; color: var(--muted); font-size: 14px; }
.delete-form { margin: 8px 0 24px; }
.delete-form h3 { margin-top: 0; }
@media (max-width: 600px) {
  .table-wrap .data-table { min-width: 560px; }
  .table-wrap .data-table th, .table-wrap .data-table td { padding: 8px 10px; font-size: 14px; }
}

/* Q&A */
.faq h3 { color: var(--blue-dark); }

/* Form */
.support-form {
  margin-top: 8px;
  padding: 24px;
  border: 1px solid var(--blue-tint-2);
  border-radius: 12px;
  background: var(--bg);
}
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-weight: 600;
  font-size: 15px;
  color: var(--blue-dark);
  margin-bottom: 6px;
}
.field input, .field textarea, .field select {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  font-size: 16px; /* >=16px stops iOS Safari zooming on focus */
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
  border-color: var(--blue);
}
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.btn {
  display: inline-block;
  padding: 12px 28px;
  font: inherit;
  font-weight: 600;
  color: #fff;
  background: var(--blue);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}
.btn:hover { background: var(--blue-dark); }
.btn:disabled { opacity: .6; cursor: default; }
.form-status { margin: 14px 0 0; font-weight: 500; }
.form-status.ok { color: var(--blue-dark); }
.form-status.err { color: var(--error); }

.company { font-style: normal; line-height: 1.7; }

/*
 * Footer — mirrors FooterPage (lib/pages/footer_page/view/footer_page.dart).
 * Images/fonts come from the Flutter build's /assets/assets/ tree.
 */
.site-footer {
  --u: calc(100vw / 1920);
  margin-top: 24px;
  font-family: var(--font-heading);
}
.ftr-bg {
  height: 430px;
  background: url("/assets/assets/images/png/footer_bg.png") 0 0 / 100% 100% no-repeat;
}
.ftr-body {
  display: flex;
  align-items: flex-start;
  height: 240px;
  padding: 40px calc(73 * var(--u)) 8px;
  background: linear-gradient(90deg, #b6dbf8 0%, #c1e0fa 13%, #d8ecfb 22%, #e7f4fe 37%, #eff7fe 48%, #fff 64%, #fff 100%);
}
.ftr-brand { flex: none; margin-right: calc(100 * var(--u)); }
.ftr-logo {
  display: block;
  width: calc(273 * var(--u));
  height: 80px;
  background: #2f4e6b; /* svg tinted AppColors.blue2F4E6B */
  -webkit-mask: url("/assets/assets/images/svg/service_squared_blue.svg") center / contain no-repeat;
  mask: url("/assets/assets/images/svg/service_squared_blue.svg") center / contain no-repeat;
}
.ftr-logo-sm { display: none; }
.ftr-copy {
  margin: 14.4px 0 0;
  color: #2f4e6b;
  font-size: 11px;
  line-height: 1;
}
.ftr-copy-sm { display: none; }
.ftr-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-self: stretch;
  padding-bottom: 10px;
}
.ftr-links { flex: 1; display: flex; align-items: flex-start; }
.ftr-col { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 17.6px; }
.ftr-links a { text-decoration: none; }
.ftr-col a { color: #396ea8; font-size: 14.4px; line-height: 1; }
.ftr-col a:hover { color: #152943; }
.ftr-btn {
  padding: 16px 14.4px;
  border-radius: calc(12 * var(--u));
  background: #396ea8;
  color: #fff;
  font-size: 14.4px;
  line-height: 1;
}
.ftr-btn:hover { background: #152943; color: #fff; }
.ftr-divider { width: 100%; margin: 0; border: 0; border-top: 1px solid #396ea8; }

@media (max-width: 991.98px) {
  .ftr-bg { height: 120px; }
  .ftr-body {
    display: grid;
    grid-template-columns: 50px 1fr;
    align-items: start;
    height: 180px;
    padding: 22px 18px;
  }
  .ftr-brand { margin: 0; }
  .ftr-logo, .ftr-brand .ftr-copy { display: none; }
  .ftr-logo-sm { display: block; line-height: 0; }
  .ftr-logo-sm img { width: 50px; height: 52px; object-fit: contain; }
  .ftr-main { padding: 0; display: contents; }
  .ftr-links {
    flex-wrap: wrap;
    justify-content: flex-end;
    column-gap: 20px;
    row-gap: 17px;
  }
  .ftr-col { flex: none; gap: 10px; }
  .ftr-col a { font-size: 12px; }
  .ftr-btn { flex-basis: 100%; max-width: max-content; margin-left: auto; padding: 8px; border-radius: 3px; font-size: 10px; }
  .ftr-divider { grid-column: 1 / -1; margin-top: 12px; }
  .ftr-copy-sm {
    display: block;
    grid-column: 1 / -1;
    max-width: 140px;
    margin: 12px 0 0;
    color: #396ea8;
    font-size: 10px;
    line-height: 1;
  }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .hero { padding: 16px 0 20px; }
  h1 { font-size: 32px; }
  h2 { font-size: 22px; margin-top: 36px; }
  .support-form { padding: 18px; }
  .contact-table, .contact-table tbody, .contact-table tr, .contact-table th, .contact-table td { display: block; width: auto; }
  .contact-table th { padding: 12px 16px 0; }
  .contact-table td { padding: 2px 16px 12px; }
  .contact-table tr + tr th { border-top: 1px solid var(--blue-tint-2); }
  .contact-table tr + tr td { border-top: 0; }
  .btn { width: 100%; }
}

/* Terms of Service (web/terms/index.html) */
.policy .caps { font-size: 14px; letter-spacing: 0.01em; }
.policy .legal-links { margin-top: 40px; font-size: 15px; }
