/* ==========================================================================
   PARALLANG LANDING — DESIGN SYSTEM
   Extracted from app.parallang.com (Angular frontend)
   
   Brand Tokens:
   - Font: Montserrat (Google Fonts)
   - Primary Navy: #2a3554
   - Electric Blue: #004FFF
   - Near-Black: #020823
   ========================================================================== */

/* --------------------------------------------------------------------------
   #GOOGLE FONTS
   -------------------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

/* --------------------------------------------------------------------------
   #CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   -------------------------------------------------------------------------- */
:root {
  /* Brand colors */
  --color-brand-1: #2a3554;
  --color-brand-2: #004FFF;
  --color-brand-3: #020823;

  /* Brand blue accents */
  --color-brand-2-light: #3372ff;
  --color-brand-2-lighter: #e8efff;
  --color-brand-2-bg: #f0f4ff;

  /* Gray palette */
  --color-gray-lightest: #f9fbff;
  --color-gray-lighter: #f0f3fb;
  --color-gray-light: #e2e7f2;
  --color-gray-medium-light: #d1d7e1;
  --color-gray-medium: #a4afc6;
  --color-gray-medium-dark: #7a82a9;
  --color-gray-dark: #3f496f;
  --color-gray-darker: #2a3554;
  --color-gray-darkest: #020823;

  /* Flats */
  --color-flat-white: #ffffff;
  --color-flat-black: #000000;

  /* Status */
  --color-success: #8abf73;
  --color-info: #6a9bb8;
  --color-warning: #f1c232;
  --color-error: #d94f4f;

  /* Typography */
  --font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Shadows (from Parallang app) */
  --shadow-card: 0px 8px 22px 0px rgba(42, 53, 84, 0.05), 0px 14px 64px 0px rgba(42, 53, 84, 0.05);
  --shadow-card-hover: 0px 12px 32px 0px rgba(42, 53, 84, 0.08), 0px 20px 80px 0px rgba(42, 53, 84, 0.07);
  --shadow-navbar: 0px 1px 3px rgba(42, 53, 84, 0.06);

  /* Layout */
  --content-max-width: 820px;
  --navbar-height: 72px;
  --section-padding: 3rem;
}

/* --------------------------------------------------------------------------
   #RESET & BASE
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--navbar-height) + 2rem);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-family);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--color-gray-dark);
  background-color: var(--color-gray-lightest);
  overflow-x: hidden;
}

a {
  color: var(--color-brand-2);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: var(--color-brand-2-light);
}

img,
svg {
  display: block;
  max-width: 100%;
}

/* --------------------------------------------------------------------------
   #NAVBAR
   -------------------------------------------------------------------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--navbar-height);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-gray-light);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

.navbar.scrolled {
  box-shadow: var(--shadow-navbar);
  background: rgba(255, 255, 255, 0.97);
}

.navbar__inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: 0;
}

.navbar__logo svg,
.navbar__logo img {
  height: 28px;
  width: auto;
}

.navbar__nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.navbar__link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-brand-1);
  letter-spacing: 0.01em;
  position: relative;
  padding: 0.25rem 0;
}

.navbar__link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--color-brand-2);
  border-radius: 1px;
  transition: width 0.25s ease;
}

.navbar__link:hover {
  color: var(--color-brand-2);
}

.navbar__link:hover::after,
.navbar__link--active::after {
  width: 100%;
}

.navbar__link--active {
  color: var(--color-brand-2);
}

.navbar__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-flat-white);
  background: var(--color-brand-1);
  padding: 0.55rem 1.25rem;
  border-radius: 8px;
  letter-spacing: 0.01em;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.navbar__cta:hover {
  background: var(--color-gray-dark);
  color: var(--color-flat-white);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(42, 53, 84, 0.2);
}

.navbar__cta svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

.navbar__cta:hover svg {
  transform: translateX(2px);
}

/* Mobile toggle */
.navbar__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.navbar__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-brand-1);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* --------------------------------------------------------------------------
   #HERO SECTION
   -------------------------------------------------------------------------- */
.hero {
  padding-top: calc(var(--navbar-height) + 4rem);
  padding-bottom: 6rem;
  background: linear-gradient(135deg, var(--color-brand-2) 0%, var(--color-brand-2-light) 50%, #5a8eff 100%);
  position: relative;
  overflow: hidden;
}

/* Floating decorative shapes */
.hero::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -80px;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -40px;
  width: 250px;
  height: 250px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 50%;
  pointer-events: none;
}

.hero__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.hero__breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1.5rem;
}

.hero__breadcrumb a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s ease;
}

.hero__breadcrumb a:hover {
  color: var(--color-flat-white);
}

.hero__breadcrumb-sep {
  font-size: 0.75rem;
  opacity: 0.5;
}

.hero__title {
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--color-flat-white);
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.hero__meta {
  font-size: 0.9375rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

.hero__meta strong {
  font-weight: 600;
  color: var(--color-flat-white);
}

/* --------------------------------------------------------------------------
   #POLICY BODY
   -------------------------------------------------------------------------- */
.policy {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem 4rem;
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 3rem;
  align-items: start;
}

.policy__main {
  background: var(--color-flat-white);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  margin-top: -3rem;
  position: relative;
  z-index: 10;
  padding: 3rem;
  animation: fadeInUp 0.6s ease-out;
}

/* --------------------------------------------------------------------------
   #TABLE OF CONTENTS (Sidebar)
   -------------------------------------------------------------------------- */
.toc {
  position: sticky;
  top: calc(var(--navbar-height) + 2rem);
  margin-top: -3rem;
  z-index: 5;
  animation: fadeInUp 0.6s ease-out 0.2s both;
}

.toc__card {
  background: var(--color-flat-white);
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  padding: 1.5rem;
}

.toc__title {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-gray-medium);
  margin-bottom: 1rem;
}

.toc__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.toc__link {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-gray-medium-dark);
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  border-left: 2px solid transparent;
  transition: all 0.2s ease;
  line-height: 1.4;
}

.toc__link:hover {
  color: var(--color-brand-2);
  background: var(--color-brand-2-bg);
}

.toc__link--active {
  color: var(--color-brand-2);
  background: var(--color-brand-2-bg);
  border-left-color: var(--color-brand-2);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   #POLICY CONTENT TYPOGRAPHY
   -------------------------------------------------------------------------- */

/* Executive Summary Card */
.policy__summary-card {
  background: var(--color-brand-2-bg);
  border: 1px solid var(--color-brand-2-lighter);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2.5rem;
}

.policy__summary-card h3 {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-brand-2);
  margin-bottom: 1.25rem;
}

.policy__summary-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.policy__summary-card li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.9375rem;
  color: var(--color-brand-1);
  line-height: 1.6;
}

.policy__summary-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  background: var(--color-brand-2);
  border-radius: 50%;
}

.policy__summary-card li strong {
  font-weight: 600;
  color: var(--color-brand-3);
}

/* Section headings */
.policy__section {
  padding-top: 0.5rem;
  margin-bottom: 2rem;
}

.policy__section + .policy__section {
  border-top: 1px solid var(--color-gray-light);
  padding-top: 2rem;
}

.policy__section-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--color-brand-2);
  color: var(--color-flat-white);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 8px;
  margin-right: 0.75rem;
  vertical-align: middle;
  flex-shrink: 0;
}

.policy__section-heading {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--color-brand-1);
  line-height: 1.3;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
}

.policy__section-heading-text {
  letter-spacing: -0.01em;
}

/* Body text */
.policy__text {
  font-size: 0.9375rem;
  color: var(--color-gray-dark);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.policy__text:last-child {
  margin-bottom: 0;
}

/* Bullet lists */
.policy__list {
  list-style: none;
  margin: 0.75rem 0 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.policy__list li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.9375rem;
  color: var(--color-gray-dark);
  line-height: 1.7;
}

.policy__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  background: var(--color-brand-2);
  border-radius: 50%;
}

.policy__list li strong {
  font-weight: 600;
  color: var(--color-brand-1);
}

/* Numbered lists */
.policy__numbered-list {
  list-style: none;
  margin: 0.75rem 0 1.25rem;
  counter-reset: policy-counter;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.policy__numbered-list li {
  position: relative;
  padding-left: 2rem;
  font-size: 0.9375rem;
  color: var(--color-gray-dark);
  line-height: 1.7;
  counter-increment: policy-counter;
}

.policy__numbered-list li::before {
  content: counter(policy-counter) '.';
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
  color: var(--color-brand-2);
  font-size: 0.875rem;
}

.policy__numbered-list li strong {
  font-weight: 600;
  color: var(--color-brand-1);
}

/* Blockquote / callout */
.policy__callout {
  background: var(--color-gray-lightest);
  border-left: 3px solid var(--color-brand-2);
  border-radius: 0 8px 8px 0;
  padding: 1rem 1.5rem;
  margin: 1.25rem 0;
  font-size: 0.875rem;
  color: var(--color-gray-dark);
  line-height: 1.7;
}

.policy__callout a {
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   #FOOTER
   -------------------------------------------------------------------------- */
.footer {
  background: var(--color-brand-3);
  color: rgba(255, 255, 255, 0.6);
  padding: 3.5rem 2rem 2rem;
}

.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 3rem;
  align-items: start;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer__logo {
  height: 24px;
  width: auto;
  opacity: 0.9;
}

.footer__tagline {
  font-size: 0.8125rem;
  line-height: 1.6;
  max-width: 260px;
  color: rgba(255, 255, 255, 0.5);
}

.footer__links {
  display: flex;
  gap: 3rem;
  justify-content: center;
}

.footer__link-group h4 {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 0.75rem;
}

.footer__link-group ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer__link-group a {
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s ease;
}

.footer__link-group a:hover {
  color: var(--color-flat-white);
}

.footer__contact {
  text-align: right;
}

.footer__contact-label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 0.75rem;
}

.footer__contact a {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s ease;
}

.footer__contact a:hover {
  color: var(--color-flat-white);
}

.footer__divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin: 2rem 0 1.5rem;
}

.footer__bottom {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.35);
}

/* --------------------------------------------------------------------------
   #ANIMATIONS
   -------------------------------------------------------------------------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   #PRINT STYLES
   -------------------------------------------------------------------------- */
@media print {
  .navbar,
  .toc,
  .footer,
  .navbar__cta {
    display: none !important;
  }

  .hero {
    padding-top: 1rem;
    padding-bottom: 1rem;
    background: none !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .hero__title {
    color: var(--color-brand-1) !important;
    font-size: 1.75rem;
  }

  .hero__meta {
    color: var(--color-gray-dark) !important;
  }

  .hero__breadcrumb {
    display: none;
  }

  .policy {
    grid-template-columns: 1fr;
    padding: 0;
  }

  .policy__main {
    box-shadow: none;
    margin-top: 0;
    padding: 1rem 0;
    border-radius: 0;
  }

  .policy__summary-card {
    border: 1px solid #ccc;
    background: #f9f9f9 !important;
  }

  body {
    font-size: 11pt;
    color: #000;
  }
}

/* --------------------------------------------------------------------------
   #RESPONSIVE — TABLET
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .policy {
    grid-template-columns: 1fr;
  }

  .toc {
    position: static;
    margin-top: 0;
    order: -1;
  }

  .toc__card {
    margin-top: -3rem;
    position: relative;
    z-index: 10;
  }

  .toc__list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.25rem;
  }

  .toc__link {
    border-left: none;
    border-bottom: 2px solid transparent;
    font-size: 0.75rem;
    padding: 0.35rem 0.6rem;
  }

  .toc__link--active {
    border-left-color: transparent;
    border-bottom-color: var(--color-brand-2);
  }

  .policy__main {
    margin-top: 1rem;
  }
}

/* --------------------------------------------------------------------------
   #RESPONSIVE — MOBILE
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  :root {
    --navbar-height: 64px;
    --section-padding: 2rem;
  }

  .hero {
    padding-top: calc(var(--navbar-height) + 2.5rem);
    padding-bottom: 4rem;
  }

  .hero__title {
    font-size: 1.875rem;
  }

  .hero__meta {
    font-size: 0.8125rem;
  }

  .policy {
    padding: 0 1rem 3rem;
  }

  .policy__main {
    padding: 2rem 1.5rem;
    border-radius: 12px;
  }

  .policy__section-heading {
    font-size: 1.125rem;
  }

  .policy__section-number {
    width: 28px;
    height: 28px;
    font-size: 0.6875rem;
  }

  .policy__summary-card {
    padding: 1.25rem;
  }

  /* Navbar mobile */
  .navbar__nav {
    display: none;
    position: absolute;
    top: var(--navbar-height);
    left: 0;
    right: 0;
    background: var(--color-flat-white);
    flex-direction: column;
    padding: 1.5rem 2rem;
    gap: 1rem;
    border-bottom: 1px solid var(--color-gray-light);
    box-shadow: var(--shadow-card);
  }

  .navbar__nav.open {
    display: flex;
  }

  .navbar__toggle {
    display: flex;
    flex-direction: column;
  }

  .navbar__toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .navbar__toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .navbar__toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  /* Footer mobile */
  .footer__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer__links {
    flex-direction: column;
    gap: 1.5rem;
  }

  .footer__contact {
    text-align: left;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}

/* --------------------------------------------------------------------------
   #SCROLL INDICATOR (top progress bar)
   -------------------------------------------------------------------------- */
.scroll-progress {
  position: fixed;
  top: var(--navbar-height);
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-brand-2), var(--color-brand-2-light));
  z-index: 999;
  width: 0;
  transition: width 0.1s linear;
  border-radius: 0 2px 2px 0;
}
