/* ==========================================================================
   Insight LNG Shipping Co., Limited — legal pages stylesheet
   Loaded ONLY by privacy.html and terms-of-service.html
   ========================================================================== */

:root {
  --bg: #0C1216;
  --surface: #13202A;
  --line: #20303B;
  --line-soft: #1A2832;
  --steel: #3A5A78;
  --steel-dark: #2C465E;
  --steel-deep: #24384B;
  --pale: #9DB8CC;
  --mist: #C9D4DC;
  --text: #E6EEF4;
  --text-dim: #B8C7D3;
  --white: #FFFFFF;
  --font-sans: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
}

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

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

.legal-page {
  background-color: #0C1216;
  color: #E6EEF4;
}

body {
  font-size: 16px;
  font-family: var(--font-sans);
  background-color: #0C1216;
  color: #E6EEF4;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: #9DB8CC;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #E6EEF4;
}

/* ==========================================================================
   LEGAL HEADER (a div/header, never a section)
   ========================================================================== */

.legal-header {
  background-color: #13202A;
  border-bottom: 1px solid #3A5A78;
  padding: 20px 0;
}

.legal-header-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.legal-brand:hover {
  color: #E6EEF4;
}

.legal-brand .compass-rose {
  position: relative;
  display: inline-block;
  width: 24px;
  height: 24px;
  background-color: #3A5A78;
  border-radius: 50%;
  flex-shrink: 0;
}

.legal-brand .compass-rose::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 9px;
  height: 9px;
  background-color: #FFFFFF;
  transform: translate(-50%, -50%) rotate(45deg);
}

.legal-brand-name {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #E6EEF4;
}

.legal-back {
  font-size: 14px;
  font-weight: 600;
  color: #9DB8CC;
}

.legal-back:hover {
  color: #E6EEF4;
}

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

.legal-content {
  padding: 64px 0 32px;
}

.legal-content .container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

.legal-content h1 {
  font-family: var(--font-serif);
  font-size: 38px;
  line-height: 1.2;
  color: #E6EEF4;
  margin-bottom: 12px;
}

.legal-updated {
  font-size: 14px;
  color: #9DB8CC;
  margin-bottom: 40px;
}

.legal-content h2 {
  font-family: var(--font-serif);
  font-size: 24px;
  line-height: 1.25;
  color: #9DB8CC;
  margin: 40px 0 16px;
  padding-top: 8px;
}

.legal-content h3 {
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.3;
  color: #E6EEF4;
  margin: 26px 0 12px;
}

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

.legal-content ul,
.legal-content ol {
  margin: 0 0 20px 24px;
  color: #B8C7D3;
  font-size: 16px;
  line-height: 1.75;
}

.legal-content li {
  margin-bottom: 8px;
}

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

/* Scope isolation: never paint dark backgrounds over legal text */
.legal-page .legal-content section {
  background-color: transparent !important;
}

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

.toc {
  background-color: #13202A;
  border: 1px solid #20303B;
  border-left: 3px solid #3A5A78;
  border-radius: 2px;
  padding: 24px 28px;
  margin: 8px 0 48px;
}

.toc h2 {
  margin: 0 0 14px;
  padding-top: 0;
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #C9D4DC;
}

.toc ol {
  margin: 0;
  padding-left: 20px;
  list-style: decimal;
}

.toc li {
  margin-bottom: 8px;
  font-size: 15px;
}

.toc a {
  color: #9DB8CC;
}

.toc a:hover {
  color: #E6EEF4;
}

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

.legal-footer {
  border-top: 3px solid #3A5A78;
  padding: 40px 24px 28px;
}

.legal-footer-inner {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid #20303B;
}

.legal-footer-brand {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #E6EEF4;
}

.legal-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  list-style: none;
}

.legal-footer-links a {
  font-size: 14px;
  color: #9DB8CC;
}

.legal-footer-links a:hover {
  color: #E6EEF4;
}

.legal-footer-legal {
  max-width: 800px;
  margin: 20px auto 0;
  text-align: center;
  color: #B8C7D3;
  font-size: 13px;
}

.legal-footer-legal a {
  color: #9DB8CC;
}

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

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

@media (max-width: 640px) {
  .legal-content {
    padding: 40px 0 24px;
  }

  .legal-content h1 {
    font-size: 30px;
  }

  .legal-content h2 {
    font-size: 21px;
  }

  .legal-footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
