/* ==========================================================================
   legal.css
   Shared styles for the GFM Group's legal pages (privacy.html, terms.html).
   Black / white theme, sidebar table of contents, top navbar.
   ========================================================================== */

:root{
  --bg: #000000;
  --bg-raised: #0a0a0a;
  --text: #f2f2f2;
  --text-dim: #b3b3b3;
  --text-faint: #7a7a7a;
  --line: #2a2a2a;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

*{ box-sizing: border-box; }

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

a{ color: var(--text); }
a:hover{ color: var(--text-dim); }

/* ---------------------------------------------------------------------- */
/* Top navbar — shared across every legal page                            */
/* ---------------------------------------------------------------------- */

.sitenav{
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.sitenav .sitenav-brand{
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.01em;
}

.sitenav .sitenav-links{
  display: flex;
  gap: 22px;
}

.sitenav .sitenav-links a{
  font-size: 0.88rem;
  color: var(--text-faint);
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: color .12s ease, border-color .12s ease;
}

.sitenav .sitenav-links a:hover{ color: var(--text-dim); }

.sitenav .sitenav-links a.current{
  color: var(--text);
  border-bottom-color: var(--text);
}

/* ---------------------------------------------------------------------- */
/* Page layout — sidebar table of contents + main content                 */
/* ---------------------------------------------------------------------- */

.layout{
  display: flex;
  max-width: 1120px;
  margin: 0 auto;
  align-items: flex-start;
  padding: 0 24px;
}

nav.toc{
  width: 230px;
  flex-shrink: 0;
  position: sticky;
  top: 57px; /* sits just under the sticky navbar */
  max-height: calc(100vh - 57px);
  overflow-y: visible;
  padding: 40px 24px 60px 0;
}

nav.toc ul{ list-style: none; margin: 0 0 22px 0; padding: 0; }
nav.toc li{ margin-bottom: 1px; }

nav.toc a{
  display: block;
  font-size: 0.9rem;
  color: var(--text-faint);
  text-decoration: none;
  padding: 7px 0 7px 14px;
  border-left: 2px solid var(--line);
  transition: color .12s ease, border-color .12s ease;
}

nav.toc a:hover{ color: var(--text-dim); border-left-color: var(--text-faint); }
nav.toc a.active{ color: var(--text); border-left-color: var(--text); }

nav.toc .group-label{
  font-size: 0.72rem;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin: 0 0 10px 0;
  padding-left: 14px;
}

.wrap{
  max-width: 640px;
  margin: 0;
  padding: 40px 0 120px 56px;
  flex: 1;
  min-width: 0;
  border-left: 1px solid var(--line);
}

/* ---------------------------------------------------------------------- */
/* Page header                                                            */
/* ---------------------------------------------------------------------- */

header.page-header{ margin-bottom: 52px; }
h1{ font-size: 2.1rem; font-weight: 600; margin: 0 0 10px 0; letter-spacing: -0.01em; }
header.page-header .updated{ font-size: 0.88rem; color: var(--text-faint); }
header.page-header p.intro{ color: var(--text-dim); margin-top: 22px; font-size: 1.03rem; max-width: 560px; }

.callout{
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px 18px;
  margin: 26px 0 0 0;
  color: var(--text-dim);
  font-size: 0.9rem;
  max-width: 560px;
}

/* ---------------------------------------------------------------------- */
/* Section content                                                        */
/* ---------------------------------------------------------------------- */

section{ margin-bottom: 44px; scroll-margin-top: 76px; }
h2{ font-size: 1.3rem; font-weight: 600; margin: 0 0 14px 0; }
h3{ font-size: 1rem; font-weight: 600; margin: 20px 0 8px 0; color: var(--text); }

p{ color: var(--text-dim); margin: 0 0 14px 0; }
ul{ margin: 0 0 14px 0; padding-left: 20px; color: var(--text-dim); }
li{ margin-bottom: 6px; }
strong{ color: var(--text); font-weight: 600; }

table{ width: 100%; border-collapse: collapse; margin: 14px 0 20px 0; font-size: 0.94rem; }
th, td{ text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--line); color: var(--text-dim); }
th{ color: var(--text); font-weight: 600; }

.group-heading{
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  margin: 56px 0 18px 0;
}

/* ---------------------------------------------------------------------- */
/* Entity / product cards                                                 */
/* ---------------------------------------------------------------------- */

.entity{
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-raised);
  padding: 24px 26px;
  margin-bottom: 20px;
  scroll-margin-top: 76px;
}

.entity .kicker{ font-size: 0.8rem; color: var(--text-faint); margin-bottom: 6px; }
.entity h3.name{ font-size: 1.25rem; font-weight: 600; margin: 0 0 4px 0; }
.entity .role{ color: var(--text-faint); font-size: 0.9rem; margin-bottom: 16px; }
.entity .divisions{ display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.entity .divisions span{
  font-size: 0.78rem; color: var(--text-dim); border: 1px solid var(--line);
  border-radius: 999px; padding: 3px 10px;
}
.entity p:last-child{ margin-bottom: 0; }

/* ---------------------------------------------------------------------- */
/* Contact list                                                           */
/* ---------------------------------------------------------------------- */

.contact-list{ margin-top: 10px; }
.contact-row{
  display: flex; justify-content: space-between; gap: 16px; padding: 10px 0;
  border-bottom: 1px solid var(--line); font-size: 0.94rem; flex-wrap: wrap;
}
.contact-row .who{ color: var(--text-dim); }
.contact-row .what{ color: var(--text); }

/* ---------------------------------------------------------------------- */
/* Footer                                                                 */
/* ---------------------------------------------------------------------- */

footer.page-footer{
  border-top: 1px solid var(--line);
  padding-top: 24px;
  margin-top: 20px;
  color: var(--text-faint);
  font-size: 0.85rem;
}

/* ---------------------------------------------------------------------- */
/* Responsive                                                             */
/* ---------------------------------------------------------------------- */

@media (max-width: 860px){
  .layout{ display: block; padding: 0; }
  nav.toc{
    position: relative; top: 0; height: auto; max-height: none;
    width: auto; padding: 20px 20px; border-bottom: 1px solid var(--line);
  }
  .wrap{ padding: 32px 20px 80px 20px; max-width: 100%; border-left: none; }
}

@media (max-width: 600px){
  h1{ font-size: 1.6rem; }
  .sitenav{ padding: 14px 18px; }
  .sitenav .sitenav-links{ gap: 14px; }
}
