/* ============================================================
   GILBURY LIMITED — Legal Stylesheet (privacy + terms)
   Dark Emerald Theme: bg #0F1312 · text #EAF2EF · accent #10B981
   ============================================================ */

.legal-page {
  background-color: #0F1312;
  color: #EAF2EF;
}

:root {
  --bg: #0F1312;
  --surface: #16201D;
  --surface-2: #1B2723;
  --border: #223129;
  --border-soft: #1E2B26;
  --text: #EAF2EF;
  --text-soft: #B8CCC3;
  --text-mute: #8FA79D;
  --accent: #10B981;
  --accent-deep: #059669;
  --accent-light: #A7F3D0;
  --accent-ink: #06251C;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-size: 16px;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background-color: #0F1312;
  color: #EAF2EF;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: #A7F3D0;
  text-decoration: none;
}

a:hover {
  color: #10B981;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   LEGAL HEADER
   ============================================================ */

.legal-header {
  background: linear-gradient(135deg, #06251C 0%, #0E5E42 55%, #0F1312 100%);
  border-bottom: 1px solid #223129;
  padding-top: 22px;
}

.legal-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}

.legal-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.legal-brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background-color: #10B981;
  color: #06251C;
  font-weight: 800;
  font-size: 1.2rem;
}

.legal-brand__word {
  font-size: 1.25rem;
  font-weight: 700;
  color: #EAF2EF;
  letter-spacing: 0.02em;
}

.legal-header__back {
  font-size: 0.95rem;
  font-weight: 600;
  color: #A7F3D0;
  padding: 8px 16px;
  border: 1px solid #223129;
  border-radius: 6px;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.legal-header__back:hover {
  border-color: #10B981;
  color: #10B981;
}

.legal-header__title {
  padding: 44px 0 46px;
}

.legal-header__kicker {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #10B981;
  margin-bottom: 14px;
}

.legal-header__title h1 {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: #EAF2EF;
}

.legal-header__meta {
  margin-top: 16px;
  font-size: 0.95rem;
  color: #B8CCC3;
}

/* ============================================================
   LEGAL BODY LAYOUT
   ============================================================ */

.legal-body {
  padding: 56px 0 72px;
}

.legal-body__inner {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 56px;
  align-items: start;
}

/* ============================================================
   TABLE OF CONTENTS
   ============================================================ */

.toc {
  position: sticky;
  top: 24px;
  background-color: #16201D;
  border: 1px solid #223129;
  border-radius: 14px;
  padding: 26px 24px;
}

.toc__title {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #10B981;
  margin-bottom: 18px;
}

.toc__list {
  list-style: none;
  counter-reset: toc;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.toc__list li {
  counter-increment: toc;
}

.toc__list a {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 0.92rem;
  color: #B8CCC3;
  padding: 8px 6px;
  border-radius: 6px;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.toc__list a::before {
  content: counter(toc, decimal-leading-zero);
  font-size: 0.72rem;
  font-weight: 700;
  color: #8FA79D;
}

.toc__list a:hover {
  color: #A7F3D0;
  background-color: #1B2723;
}

/* ============================================================
   LEGAL CONTENT
   ============================================================ */

.legal-content section {
  background-color: transparent !important;
}

.legal-content section {
  padding: 0 0 46px;
  margin-bottom: 46px;
  border-bottom: 1px solid #1E2B26;
}

.legal-content section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.legal-content h2 {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #34D399;
  margin-bottom: 18px;
  line-height: 1.25;
  scroll-margin-top: 32px;
}

.legal-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #A7F3D0;
  margin: 26px 0 12px;
}

.legal-content p {
  font-size: 1.03rem;
  color: #EAF2EF;
  margin-bottom: 16px;
  line-height: 1.75;
}

.legal-content p:last-child {
  margin-bottom: 0;
}

.legal-content ul {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}

.legal-content ul li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 12px;
  font-size: 1.03rem;
  color: #EAF2EF;
  line-height: 1.7;
}

.legal-content ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 11px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background-color: #10B981;
}

.legal-content strong {
  color: #EAF2EF;
}

.legal-content a {
  color: #A7F3D0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-content a:hover {
  color: #10B981;
}

/* ============================================================
   LEGAL FOOTER
   ============================================================ */

.legal-footer {
  background-color: #121816;
  border-top: 3px solid #10B981;
  padding: 28px 0;
}

.legal-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.legal-footer p {
  font-size: 0.9rem;
  color: #8FA79D;
}

.legal-footer a {
  font-size: 0.9rem;
  font-weight: 600;
  color: #A7F3D0;
}

.legal-footer a:hover {
  color: #10B981;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {
  .legal-body__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .toc {
    position: static;
  }

  .legal-header__title h1 {
    font-size: 2.2rem;
  }
}

@media (max-width: 560px) {
  .legal-header__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .legal-header__title {
    padding: 32px 0 34px;
  }

  .legal-content h2 {
    font-size: 1.4rem;
  }
}
