
    :root {
      --background: 45, 30%, 98%;
      --foreground: 30, 20%, 15%;
      --primary: 38, 92%, 50%;
      --primary-foreground: 0, 0%, 100%;
      --secondary: 45, 50%, 92%;
      --muted: 45, 20%, 90%;
      --muted-foreground: 30, 10%, 45%;
      --accent: 38, 80%, 55%;
      --card: 0, 0%, 100%;
      --border: 45, 30%, 85%;
      --radius: 1rem;
    }

    .dark {
      --background: 30, 20%, 8%;
      --foreground: 45, 30%, 95%;
      --secondary: 30, 15%, 15%;
      --muted: 30, 10%, 20%;
      --muted-foreground: 45, 15%, 60%;
      --card: 30, 15%, 12%;
      --border: 30, 15%, 20%;
    }

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

    body {
      font-family: "Outfit", sans-serif;
      background: hsl(var(--background));
      color: hsl(var(--foreground));
      line-height: 1.8;
      transition:
        background-color 0.3s ease,
        color 0.3s ease;
    }

    /* Header */
    header {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      z-index: 100;
      padding: 1rem 2rem;
      background: hsla(var(--background), 0.9);
      backdrop-filter: blur(20px);
      border-bottom: 1px solid hsla(var(--border), 0.5);
    }

    .header-content {
      max-width: 900px;
      margin: 0 auto;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .logo {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      font-weight: 800;
      font-size: 1.5rem;
      color: hsl(var(--foreground));
      text-decoration: none;
    }

    .logo-icon {
      width: 40px;
      height: 40px;
      border-radius: 10px;
      overflow: hidden;
      box-shadow: 0 4px 15px hsla(var(--primary), 0.4);
    }

    .logo-icon img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .logo-text {
      background: linear-gradient(135deg,
          hsl(var(--primary)),
          hsl(38, 100%, 60%));
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }

    .header-actions {
      display: flex;
      align-items: center;
      gap: 0.75rem;
    }

    /* Language Selector */
    .lang-selector {
      position: relative;
    }

    .lang-btn {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      padding: 0.5rem 0.875rem;
      background: hsl(var(--card));
      border: 2px solid hsl(var(--border));
      border-radius: 2rem;
      cursor: pointer;
      font-size: 0.875rem;
      font-weight: 600;
      color: hsl(var(--foreground));
      transition: all 0.3s ease;
    }

    .lang-btn:hover {
      border-color: hsl(var(--primary));
    }

    .lang-dropdown {
      position: absolute;
      top: calc(100% + 0.5rem);
      right: 0;
      background: hsl(var(--card));
      border: 1px solid hsl(var(--border));
      border-radius: 1rem;
      overflow: hidden;
      box-shadow: 0 10px 30px hsla(var(--foreground), 0.15);
      opacity: 0;
      visibility: hidden;
      transform: translateY(-10px);
      transition: all 0.3s ease;
      min-width: 140px;
    }

    .lang-selector.open .lang-dropdown {
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
    }

    .lang-option {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      padding: 0.875rem 1rem;
      cursor: pointer;
      transition: all 0.2s ease;
      font-weight: 500;
    }

    .lang-option:hover {
      background: hsla(var(--primary), 0.1);
    }

    .lang-option.active {
      background: hsla(var(--primary), 0.15);
      color: hsl(var(--primary));
    }

    .lang-flag {
      font-size: 1.25rem;
    }

    .theme-toggle {
      width: 40px;
      height: 40px;
      border-radius: 50%;
      border: 2px solid hsl(var(--border));
      background: hsl(var(--card));
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.1rem;
      transition: all 0.3s ease;
    }

    .theme-toggle:hover {
      border-color: hsl(var(--primary));
    }

    /* Main Content */
    main {
      max-width: 900px;
      margin: 0 auto;
      padding: 8rem 2rem 4rem;
      min-height: 80vh;
    }

    #legal-content {
      animation: fadeIn 0.5s ease;
    }

    @keyframes fadeIn {
      from {
        opacity: 0;
        transform: translateY(10px);
      }

      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    /* Loader styles */
    .loader-container {
      display: flex;
      justify-content: center;
      align-items: center;
      min-height: 400px;
    }

    .loader {
      width: 48px;
      height: 48px;
      border: 5px solid hsl(var(--border));
      border-bottom-color: hsl(var(--primary));
      border-radius: 50%;
      display: inline-block;
      box-sizing: border-box;
      animation: rotation 1s linear infinite;
    }

    @keyframes rotation {
      0% {
        transform: rotate(0deg);
      }

      100% {
        transform: rotate(360deg);
      }
    }

    .error-message {
      text-align: center;
      color: #ef4444;
      padding: 2rem;
      background: hsla(var(--card));
      border-radius: 1rem;
      border: 1px solid #fee2e2;
    }

    /* Styles for injected content */
    .page-header {
      text-align: center;
      margin-bottom: 3rem;
    }

    #legal-content h1 {
      font-size: clamp(2rem, 5vw, 3rem);
      font-weight: 800;
      margin-bottom: 1rem;
      background: linear-gradient(135deg,
          hsl(var(--primary)),
          hsl(38, 100%, 60%));
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      text-align: center;
    }

    #legal-content h2 {
      font-size: 1.5rem;
      font-weight: 700;
      margin-bottom: 1rem;
      margin-top: 2rem;
      color: hsl(var(--primary));
      display: flex;
      align-items: center;
      gap: 0.75rem;
    }

    #legal-content h2::before {
      content: "";
      width: 4px;
      height: 1.5rem;
      background: linear-gradient(135deg,
          hsl(var(--primary)),
          hsl(var(--accent)));
      border-radius: 2px;
    }

    #legal-content p {
      margin-bottom: 1rem;
      color: hsl(var(--muted-foreground));
    }

    #legal-content ul,
    #legal-content ol {
      margin: 1rem 0 1rem 1.5rem;
      color: hsl(var(--muted-foreground));
    }

    #legal-content li {
      margin-bottom: 0.75rem;
    }

    /* Footer */
    footer {
      text-align: center;
      padding: 3rem 2rem;
      border-top: 1px solid hsl(var(--border));
    }

    .footer-links {
      display: flex;
      justify-content: center;
      gap: 2rem;
      margin-bottom: 1.5rem;
      flex-wrap: wrap;
    }

    .footer-links a {
      color: hsl(var(--muted-foreground));
      text-decoration: none;
      font-weight: 500;
      transition: color 0.3s ease;
    }

    .footer-links a:hover {
      color: hsl(var(--primary));
    }

    .footer-copyright {
      color: hsl(var(--muted-foreground));
      font-size: 0.875rem;
    }

    .back-btn {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      padding: 0.75rem 1.5rem;
      background: hsl(var(--card));
      border: 2px solid hsl(var(--border));
      border-radius: 2rem;
      color: hsl(var(--foreground));
      text-decoration: none;
      font-weight: 600;
      transition: all 0.3s ease;
      margin-bottom: 2rem;
    }

    .back-btn:hover {
      border-color: hsl(var(--primary));
      color: hsl(var(--primary));
    }

    @media (max-width: 768px) {
      main {
        padding: 7rem 1.25rem 3rem;
      }
      .footer-links {
        flex-direction: column;
        gap: 1rem;
      }
    }
