*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  :root {
    --teal: #587E83;
    --cream: #F6F4EC;
    --cream-2: #EFEDE4;
    --dark: #1C2829;
    --text: #3D4F51;
    --muted: #6B7F81;
    --border: rgba(88,126,131,0.15);
    --serif: 'Cormorant Garamond', Georgia, serif;
    --sans: 'DM Sans', sans-serif;
  }
  body {
    background: var(--cream);
    color: var(--text);
    font-family: var(--sans);
    font-weight: 300;
    line-height: 1.8;
    padding: 40px 20px 80px;
  }
  .legal-wrapper {
    max-width: 1000px;
    margin: 0 auto;
  }

  /* --- header / logo row + back button --- */
  .top-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 20px;
  }
  .logo-area {
    display: flex;
    align-items: center;
  }
  .logo-img {
    height: 50px; /* Updated to match index.html logo size */
    width: auto;
    display: block;
    transition: all 0.3s;
  }
  .logo-img:hover {
    transform: scale(1.02);
  }
  .back-main {
    background: transparent;
    border: 1px solid var(--teal);
    color: var(--teal);
    font-family: var(--sans);
    font-size: 14px;
    font-weight: 400;
    padding: 8px 18px;
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.3px;
  }
  .back-main:hover {
    background: var(--teal);
    color: white;
    border-color: var(--teal);
  }
  /* main heading row (like screenshot) */
  .legal-masthead {
    margin-bottom: 32px;
  }
  .legal-masthead h1 {
    font-family: var(--serif);
    font-size: 32px;
    font-weight: 300;
    color: var(--dark);
    letter-spacing: -0.01em;
    padding-top: 10px;
    text-transform: uppercase;
    font-weight: 400;
  }
  .legal-masthead h1 span {
    color: var(--teal);
    font-weight: 300;
    margin-right: 8px;
  }

  /* card grid – three boxes */
  .doc-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
  }
  .doc-card {
    flex: 1 1 180px;
    background: var(--cream-2);
    border: 1px solid var(--border);
    padding: 24px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 0 rgba(0,0,0,0.02);
  }
  .doc-card:hover {
    background: #e8e4d9;
    border-color: var(--teal);
  }
  .doc-card.active {
    background: var(--cream);
    border-left: 4px solid var(--teal);
    border-bottom: 1px solid var(--teal);
    border-top: 1px solid var(--teal);
    border-right: 1px solid var(--teal);
    font-weight: 400;
  }
  .doc-card .card-label {
    font-family: var(--serif);
    font-size: 18px;
    letter-spacing: 0.02em;
    color: var(--dark);
    text-transform: uppercase;
    margin-bottom: 8px;
  }
  .doc-card .card-sub {
    font-size: 12px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
  }

  /* main document container – exactly same styles as original pages */
  .doc-container {
    background: var(--cream);
    border: 1px solid var(--border);
    padding: 48px 48px 64px;
    margin-top: 20px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.02);
  }
  .page {
    max-width: 760px;
    margin: 0 auto;
  }
  .doc-header {
    margin-bottom: 56px;
    padding-bottom: 36px;
    border-bottom: 1px solid var(--border);
  }
  .doc-logo {
    font-family: var(--serif);
    font-size: 13px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: 28px;
    display: block;
  }
  .doc-title {
    font-family: var(--serif);
    font-size: 42px;
    font-weight: 300;
    color: var(--dark);
    line-height: 1.1;
    margin-bottom: 16px;
  }
  .doc-meta {
    font-size: 13px;
    color: var(--muted);
    letter-spacing: 0.05em;
  }
  .doc-intro {
    background: var(--cream-2);
    border-left: 3px solid var(--teal);
    padding: 20px 24px;
    margin-bottom: 56px;
    font-size: 15px;
    color: var(--text);
    line-height: 1.75;
  }
  .section {
    margin-bottom: 48px;
  }
  .section-num {
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: 6px;
    display: block;
  }
  .section-title {
    font-family: var(--serif);
    font-size: 22px;
    font-weight: 400;
    color: var(--dark);
    margin-bottom: 16px;
  }
  .section p {
    font-size: 15px;
    color: var(--text);
    line-height: 1.85;
    margin-bottom: 14px;
  }
  .section p:last-child { margin-bottom: 0; }
  .section ul {
    margin: 12px 0 14px 0;
    padding-left: 0;
    list-style: none;
  }
  .section ul li {
    font-size: 15px;
    color: var(--text);
    line-height: 1.75;
    padding: 6px 0 6px 20px;
    border-bottom: 1px solid var(--border);
    position: relative;
  }
  .section ul li:first-child { border-top: 1px solid var(--border); }
  .section ul li::before {
    content: '◆';
    font-size: 5px;
    color: var(--teal);
    position: absolute;
    left: 0;
    top: 12px;
  }
  .highlight-box {
    background: var(--cream-2);
    border: 1px solid var(--border);
    padding: 20px 24px;
    margin: 16px 0;
  }
  .highlight-box p {
    font-size: 15px;
    color: var(--text);
    line-height: 1.8;
    margin-bottom: 0;
  }
  .highlight-box strong { color: var(--dark); font-weight: 500; }
  .two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    background: var(--border);
    margin: 16px 0;
  }
  .two-col-cell {
    background: var(--cream);
    padding: 16px 20px;
  }
  .two-col-cell .cell-label {
    font-size: 10px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: 8px;
    display: block;
  }
  .two-col-cell ul { margin: 0; }
  .two-col-cell ul li {
    font-size: 14px;
    border: none;
    padding: 4px 0 4px 16px;
  }
  .two-col-cell ul li:first-child { border: none; }
  .contact-block {
    background: var(--cream-2);
    border: 1px solid var(--border);
    padding: 28px 32px;
    margin-top: 56px;
  }
  .contact-block .section-num { margin-bottom: 4px; }
  .contact-block .section-title { margin-bottom: 12px; }
  .contact-block p { font-size: 15px; color: var(--text); margin-bottom: 6px; }
  .contact-block a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
  a { color: var(--teal); text-underline-offset: 3px; }
  
  /* footer area with logo */
  .legal-footer {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
  }
  .footer-logo {
    display: flex;
    align-items: center;
  }
  .footer-logo-img {
    height: 50px;
    width: auto;
    opacity: 0.8;
    transition: all 0.3s;
  }
  .footer-logo-img:hover {
    transform: scale(1.02);
  }
  .footer-copy {
    font-size: 13px;
    color: var(--muted);
  }

  .acknowledgement {
    background: var(--cream-2);
    border: 1px solid var(--border);
    border-left: 3px solid var(--teal);
    padding: 28px 32px;
    margin-top: 56px;
  }
  .acknowledgement p {
    font-family: var(--serif);
    font-size: 18px;
    font-weight: 300;
    font-style: italic;
    color: var(--dark);
    line-height: 1.7;
    margin-bottom: 16px;
  }
  .acknowledgement p:last-child { margin-bottom: 0; }
  .divider {
    height: 1px;
    background: var(--border);
    margin: 56px 0;
  }
  @media (max-width: 600px) {
    .doc-container { padding: 24px 20px 40px; }
    .doc-title { font-size: 32px; }
    .two-col { grid-template-columns: 1fr; }
    .doc-grid { flex-direction: column; }
    .top-bar { flex-direction: column; align-items: start; gap: 15px; }
  }

  /* hide/show */
  .doc-pane { display: none; }
  .doc-pane.active-pane { display: block; }