/* GeoXtra legal pages - shared styles.
   Served from /src/final3/legal/ and /v12/legal/, so shared assets use root-absolute paths. */

@font-face {
  font-family: "Rethink Sans";
  src: url("/assets/fonts/RethinkSans-VariableFont_wght.woff2") format("woff2"),url("/assets/fonts/RethinkSans-VariableFont_wght.ttf") format("truetype");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --gx-dark: #1D3557;      /* Dark Blue: text, header bar */
  --gx-white: #FFFFFF;
  --gx-grey: #F5F5F5;      /* Light Grey */
  --gx-sky: #4CC9F0;       /* Sky Blue: links on dark */
  --gx-sky-aa: #0381A2;    /* AA Sky: links on light */
  --gx-steel: #AEBFCD;     /* Geo Steel: rules */
  --gx-steel-aa: #607995;  /* AA Steel: secondary text */
  --gx-measure: 72ch;
  --gx-gutter: clamp(16px, 4vw, 40px);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--gx-white);
  color: var(--gx-dark);
  font-family: "Rethink Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--gx-sky-aa); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--gx-dark); text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--gx-sky-aa);
  outline-offset: 3px;
  border-radius: 2px;
}

.lg-skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 10;
  padding: 10px 16px;
  background: var(--gx-dark);
  color: var(--gx-white);
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
}
.lg-skip:focus { top: 12px; color: var(--gx-white); }

.lg-wrap {
  width: 100%;
  max-width: calc(var(--gx-measure) + 2 * var(--gx-gutter));
  margin: 0 auto;
  padding: 0 var(--gx-gutter);
}

/* Top strip: logo and the way back home */
.lg-top {
  background: var(--gx-white);
  border-bottom: 1px solid var(--gx-grey);
}
.lg-top .lg-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}
.lg-logo { display: inline-flex; padding: 6px 0; }
.lg-logo img { width: 148px; }
.lg-home {
  font-size: 15px;
  font-weight: 500;
  color: var(--gx-dark);
  text-decoration: none;
  white-space: nowrap;
}
.lg-home:hover { color: var(--gx-sky-aa); text-decoration: underline; }

/* Header bar: title and the four legal pages */
.lg-bar {
  background: var(--gx-dark);
  color: var(--gx-white);
  padding: 44px 0 0;
}
.lg-bar h1 {
  margin: 0 0 28px;
  font-size: clamp(28px, 5vw, 42px);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.lg-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  column-gap: 28px;
  row-gap: 0;
}
.lg-nav a {
  display: inline-block;
  padding: 10px 0 12px;
  color: var(--gx-steel);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 3px solid transparent;
}
.lg-nav a:hover { color: var(--gx-white); }
.lg-nav a[aria-current="page"] {
  color: var(--gx-white);
  border-bottom-color: var(--gx-sky);
}
.lg-bar :focus-visible { outline-color: var(--gx-sky); }

/* Document */
.lg-main { padding: 48px 0 72px; }

.lg-doc,
.lg-doc .policy_embed_div { max-width: var(--gx-measure); }

.lg-meta {
  margin: 0 0 32px;
  color: var(--gx-steel-aa);
  font-size: 15px;
}

.lg-doc h2,
.lg-doc .policy_embed_div h1,
.lg-doc .policy_embed_div h2 {
  margin: 2.2em 0 0.6em;
  font-size: 22px;
  line-height: 1.3;
  font-weight: 600;
  color: var(--gx-dark);
}
.lg-doc h3,
.lg-doc .policy_embed_div h3 {
  margin: 1.8em 0 0.5em;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 600;
  color: var(--gx-dark);
}
.lg-doc h4,
.lg-doc h5,
.lg-doc h6,
.lg-doc .policy_embed_div h4,
.lg-doc .policy_embed_div h5,
.lg-doc .policy_embed_div h6 {
  margin: 1.6em 0 0.4em;
  font-size: 16px;
  font-weight: 600;
  color: var(--gx-dark);
}
.lg-doc > :first-child,
.lg-doc .policy_embed_div > :first-child { margin-top: 0; }

.lg-doc p,
.lg-doc .policy_embed_div p { margin: 0 0 1em; }

.lg-doc ul,
.lg-doc ol { margin: 0 0 1.2em; padding-left: 1.4em; }
.lg-doc li { margin: 0 0 0.5em; }
.lg-doc li::marker { color: var(--gx-steel-aa); }

.lg-doc strong,
.lg-doc b { font-weight: 600; }

.lg-doc hr {
  border: 0;
  border-top: 1px solid var(--gx-steel);
  margin: 2.4em 0;
}

/* Termageddon ships its own heading sizes; keep them on the page scale */
.lg-doc .policy_embed_div h1 { font-size: 26px !important; line-height: 1.25 !important; margin: 1.6em 0 0.6em !important; }
.lg-doc .policy_embed_div h2 { font-size: 22px !important; line-height: 1.3 !important; }
.lg-doc .policy_embed_div h3 { font-size: 18px !important; line-height: 1.35 !important; }
.lg-doc .policy_embed_div > :first-child,
.lg-doc .policy_embed_div > :first-child > :first-child { margin-top: 0 !important; }

/* Termageddon's floating table of contents squeezes a 72ch column into two;
   stack it above the text instead, as it already does on phones */
.lg-doc .policy_embed_div .tg-floating-toc-layout { display: block !important; }
.lg-doc .policy_embed_div .tg-floating-toc-sidebar {
  position: static !important;
  width: auto !important;
  max-width: none !important;
  max-height: none !important;
  overflow: visible !important;
  margin: 0 0 2.4em !important;
  padding: 0 0 1.6em !important;
  border: 0 !important;
  border-bottom: 1px solid var(--gx-steel) !important;
}
.lg-doc .policy_embed_div .tg-floating-toc-content { width: auto !important; max-width: none !important; margin: 0 !important; padding: 0 !important; }

/* Termageddon output: tables are wide, so they scroll inside their own box */
.lg-doc .policy_embed_div { display: block; width: auto !important; height: auto !important; font-family: inherit; color: inherit; }
.lg-doc .policy_embed_div * { font-family: inherit !important; }
.lg-doc .policy_embed_div table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  margin: 0 0 1.4em;
  font-size: 15px;
  line-height: 1.5;
}
.lg-doc .policy_embed_div th,
.lg-doc .policy_embed_div td {
  border: 1px solid var(--gx-steel);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  min-width: 9em;
}
.lg-doc .policy_embed_div th,
.lg-doc .policy_embed_div thead td { background: var(--gx-grey); font-weight: 600; }
.lg-doc .policy_embed_div a { color: var(--gx-sky-aa); word-break: break-word; }
.lg-doc .policy_embed_div a:hover { color: var(--gx-dark); }
.lg-doc .policy_embed_div img { max-width: 100%; height: auto; }

/* The EULA: definitions list keeps the source numbering in its text */
.lg-clauses { list-style: none; padding-left: 0 !important; }
.lg-clauses li { margin: 0 0 0.8em; }
.lg-lead { font-weight: 600; }

/* Footer */
.lg-foot {
  background: var(--gx-grey);
  border-top: 1px solid var(--gx-steel);
  padding: 36px 0 40px;
  color: var(--gx-steel-aa);
  font-size: 14px;
}
.lg-foot .lg-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
}
.lg-foot-brand { display: flex; align-items: center; gap: 12px; }
.lg-foot-brand img { width: 28px; }
.lg-foot p { margin: 0; }
.lg-foot ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
}
.lg-foot a { color: var(--gx-dark); text-decoration: none; }
.lg-foot a:hover { color: var(--gx-sky-aa); text-decoration: underline; }

@media (max-width: 480px) {
  body { font-size: 16px; }
  .lg-logo img { width: 124px; }
  .lg-bar { padding-top: 32px; }
  .lg-bar h1 { margin-bottom: 18px; }
  .lg-nav ul { column-gap: 20px; }
  .lg-main { padding: 36px 0 56px; }
}

@media print {
  .lg-top, .lg-nav, .lg-foot, .lg-skip { display: none; }
  .lg-bar { background: none; color: #000000; padding: 0; }
  body { color: #000000; }
}
