:root {
      --brand: #8327D2;
      --brand-dark: #6A1FB0;
      --brand-deep: #510F92;
      --brand-light: #9F45E8;
      --brand-pale: #F3EAFD;
      --brand-soft: #EAD8FA;
      --brand-mid: #C598F0;

      --surface: #FFFFFF;
      --canvas: #F9F7FD;
      --canvas-alt: #F2EEF9;
      --border: #E6DFF5;
      --border-soft: #EDE8F6;

      --ink-900: #0F0B1A;
      --ink-700: #2D2240;
      --ink-500: #5E4D78;
      --ink-400: #8474A0;
      --ink-300: #B0A2C8;
      --ink-200: #D7CEED;
      --ink-100: #EDE8F6;

      --success: #12B76A;
      --warning: #F79009;
      --danger: #F04438;

      --ff-heading: 'Sora', sans-serif;
      --ff-body: 'DM Sans', sans-serif;

      --r-sm: 8px;
      --r-md: 12px;
      --r-lg: 16px;
      --r-xl: 24px;
      --r-full: 999px;

      --shadow-xs: 0 1px 2px rgba(131, 39, 210, 0.06);
      --shadow-sm: 0 2px 8px rgba(131, 39, 210, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
      --shadow-md: 0 4px 20px rgba(131, 39, 210, 0.12), 0 2px 6px rgba(0, 0, 0, 0.05);
      --shadow-lg: 0 12px 48px rgba(131, 39, 210, 0.16), 0 4px 12px rgba(0, 0, 0, 0.06);
    }

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

    body {
      font-family: var(--ff-body);
      background: var(--canvas);
      color: var(--ink-700);
      line-height: 1.7;
      -webkit-font-smoothing: antialiased;
    }

    /* ── LAYOUT ── */
    .terms-page {
      padding: 6rem 0 5rem;
    }

    .container {
      /* max-width: 1200px;
                margin-inline: auto;
                padding-inline: clamp(1.25rem, 4vw, 5rem); */
      max-width: 1600px;
      margin-inline: auto;
      padding: 0 100px 0 100px;
    }

    @media (max-width: 560px) {
      .container {
        /* max-width: 1200px; */
        margin-inline: auto;
        /* padding-inline: clamp(1.25rem, 4vw, 5rem); */
        padding: 0 20px 0 20px;
      }
    }

    .terms-inner {
      display: grid;
      grid-template-columns: 260px 1fr;
      gap: 3.5rem;
      align-items: start;
    }

    /* ── PAGE HEADER ── */
    .terms-header {
      margin-bottom: 3rem;
    }

    .label {
      display: inline-flex;
      align-items: center;
      gap: 0.375rem;
      padding: 0.3125rem 0.875rem;
      border-radius: var(--r-full);
      background: var(--brand-pale);
      border: 1px solid var(--brand-soft);
      font-size: 0.6875rem;
      font-weight: 700;
      font-family: var(--ff-heading);
      color: var(--brand-dark);
      letter-spacing: 0.1em;
      text-transform: uppercase;
      margin-bottom: 1.25rem;
    }

    .terms-header h1 {
      font-family: var(--ff-heading);
      font-size: clamp(2rem, 4vw, 2.75rem);
      font-weight: 800;
      color: var(--ink-900);
      letter-spacing: -0.025em;
      line-height: 1.15;
      margin-bottom: 1rem;
    }

    .terms-header h1 em {
      font-style: normal;
      background: linear-gradient(135deg, var(--brand) 0%, var(--brand-light) 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }

    .terms-header p {
      font-size: 1.0625rem;
      color: var(--ink-500);
      max-width: 600px;
      line-height: 1.75;
    }

    /* ── LAST UPDATED BADGE ── */
    .last-updated {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      background: var(--surface);
      border: 1.5px solid var(--border-soft);
      border-radius: var(--r-md);
      padding: 0.5rem 1rem;
      font-family: var(--ff-heading);
      font-size: 0.8125rem;
      font-weight: 500;
      color: var(--ink-400);
      margin-bottom: 3rem;
      box-shadow: var(--shadow-xs);
    }

    .last-updated i {
      color: var(--brand);
      flex-shrink: 0;
    }

    /* ── SIDEBAR TOC ── */
    .toc-sidebar {
      position: sticky;
      top: 6rem;
    }

    .toc-card {
      background: var(--surface);
      border: 1.5px solid var(--border-soft);
      border-radius: 20px;
      padding: 1.75rem;
      box-shadow: var(--shadow-sm);
    }

    .toc-title {
      font-family: var(--ff-heading);
      font-size: 0.75rem;
      font-weight: 700;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--brand);
      margin-bottom: 1.25rem;
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    .toc-list {
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: 0.125rem;
    }

    .toc-list li a {
      display: flex;
      align-items: baseline;
      gap: 0.625rem;
      text-decoration: none;
      font-family: var(--ff-body);
      font-size: 0.825rem;
      font-weight: 400;
      color: var(--ink-500);
      padding: 0.4rem 0.625rem;
      border-radius: var(--r-sm);
      transition: all 0.18s ease;
      line-height: 1.4;
    }

    .toc-list li a:hover {
      background: var(--brand-pale);
      color: var(--brand);
      padding-left: 0.875rem;
    }

    .toc-list li a .toc-num {
      font-family: var(--ff-heading);
      font-size: 0.6875rem;
      font-weight: 700;
      color: var(--brand-mid);
      min-width: 1.5rem;
    }

    .toc-list li a:hover .toc-num {
      color: var(--brand);
    }

    /* ── TERMS CONTENT ── */
    .terms-content {
      min-width: 0;
    }

    .terms-section {
      background: var(--surface);
      border: 1.5px solid var(--border-soft);
      border-radius: 20px;
      padding: 2.25rem 2rem;
      margin-bottom: 1.25rem;
      box-shadow: var(--shadow-xs);
      transition: box-shadow 0.25s ease, border-color 0.25s ease;
      scroll-margin-top: 6rem;
    }

    .terms-section:hover {
      box-shadow: var(--shadow-sm);
      border-color: var(--brand-soft);
    }

    .section-header-row {
      display: flex;
      align-items: flex-start;
      gap: 1rem;
      margin-bottom: 1.25rem;
    }

    .section-num {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 36px;
      height: 36px;
      min-width: 36px;
      background: var(--brand-pale);
      border-radius: var(--r-sm);
      font-family: var(--ff-heading);
      font-size: 0.75rem;
      font-weight: 700;
      color: var(--brand);
      margin-top: 2px;
    }

    .terms-section h2 {
      font-family: var(--ff-heading);
      font-size: 1.125rem;
      font-weight: 700;
      color: var(--ink-900);
      letter-spacing: -0.015em;
      line-height: 1.3;
    }

    .terms-section p {
      font-size: 0.9375rem;
      color: var(--ink-500);
      line-height: 1.75;
      margin-bottom: 0.875rem;
    }

    .terms-section p:last-child {
      margin-bottom: 0;
    }

    .terms-section ul {
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: 0.625rem;
      margin-top: 0.5rem;
    }

    .terms-section ul li {
      display: flex;
      align-items: flex-start;
      gap: 0.75rem;
      font-size: 0.9375rem;
      color: var(--ink-500);
      line-height: 1.65;
    }

    .terms-section ul li::before {
      content: '';
      display: block;
      width: 6px;
      height: 6px;
      min-width: 6px;
      border-radius: 50%;
      background: var(--brand-mid);
      margin-top: 0.55rem;
    }

    /* Highlight box */
    .highlight-box {
      background: var(--brand-pale);
      border: 1px solid var(--brand-soft);
      border-left: 3px solid var(--brand);
      border-radius: var(--r-md);
      padding: 1rem 1.25rem;
      margin-top: 1rem;
      font-size: 0.875rem;
      color: var(--ink-700);
      line-height: 1.65;
    }

    .highlight-box strong {
      font-family: var(--ff-heading);
      font-weight: 600;
      color: var(--brand-dark);
    }

    /* Warning box */
    .warning-box {
      background: #FFF8EC;
      border: 1px solid #F7D08A;
      border-left: 3px solid var(--warning);
      border-radius: var(--r-md);
      padding: 1rem 1.25rem;
      margin-top: 1rem;
      font-size: 0.875rem;
      color: #7A4F00;
      line-height: 1.65;
      display: flex;
      gap: 0.625rem;
      align-items: flex-start;
    }

    .warning-box .warn-icon {
      color: var(--warning);
      flex-shrink: 0;
      margin-top: 1px;
    }

    /* ── CONTACT SECTION ── */
    .contact-section {
      background: var(--ink-900);
      border-radius: 20px;
      padding: 2.5rem 2rem;
      margin-top: 2rem;
      position: relative;
      overflow: hidden;
    }

    .contact-section::before {
      content: '';
      position: absolute;
      top: -80px;
      right: -80px;
      width: 280px;
      height: 280px;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(131, 39, 210, 0.3) 0%, transparent 70%);
      pointer-events: none;
    }

    .contact-section .label {
      background: rgba(131, 39, 210, 0.2);
      border-color: rgba(197, 152, 240, 0.3);
      color: var(--brand-mid);
    }

    .contact-section h2 {
      font-family: var(--ff-heading);
      font-size: 1.375rem;
      font-weight: 700;
      color: #fff;
      margin-bottom: 0.625rem;
      letter-spacing: -0.015em;
    }

    .contact-section p {
      font-size: 0.9375rem;
      color: rgba(255, 255, 255, 0.55);
      margin-bottom: 1.5rem;
      line-height: 1.7;
    }

    .contact-items {
      display: flex;
      flex-direction: column;
      gap: 0.875rem;
    }

    .contact-item {
      display: flex;
      align-items: center;
      gap: 0.875rem;
      background: rgba(255, 255, 255, 0.05);
      border: 1px solid rgba(255, 255, 255, 0.08);
      border-radius: var(--r-md);
      padding: 0.875rem 1.125rem;
      text-decoration: none;
      transition: all 0.2s ease;
    }

    .contact-item:hover {
      background: rgba(131, 39, 210, 0.2);
      border-color: rgba(197, 152, 240, 0.35);
    }

    .contact-item-icon {
      width: 36px;
      height: 36px;
      background: rgba(131, 39, 210, 0.25);
      border-radius: var(--r-sm);
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--brand-mid);
      flex-shrink: 0;
    }

    .contact-item-text strong {
      display: block;
      font-family: var(--ff-heading);
      font-size: 0.75rem;
      font-weight: 600;
      color: rgba(255, 255, 255, 0.45);
      letter-spacing: 0.05em;
      text-transform: uppercase;
      margin-bottom: 0.1rem;
    }

    .contact-item-text span {
      font-size: 0.9375rem;
      color: rgba(255, 255, 255, 0.85);
      font-weight: 500;
    }

    /* ── RESPONSIVE ── */
    @media (max-width: 1024px) {
      .terms-inner {
        grid-template-columns: 220px 1fr;
        gap: 2.5rem;
      }
    }

    @media (max-width: 768px) {
      .terms-inner {
        grid-template-columns: 1fr;
      }

      .toc-sidebar {
        position: static;
        order: -1;
      }

      .terms-page {
        padding: 3.5rem 0 4rem;
      }

      .terms-section {
        padding: 1.75rem 1.5rem;
      }
    }

    @media (max-width: 480px) {
      .terms-header h1 {
        font-size: 1.75rem;
      }

      .contact-section {
        padding: 2rem 1.5rem;
      }
    }