/*
 * VEXA Wallet Design System
 * High-tech security aesthetic with precision engineering
 */

/* ============================================
   RESET & BASE
   ============================================ */

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.65;
    color: var(--foreground);
    background-color: var(--background);
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.02em;
    margin-bottom: var(--space-md);
}

h1 {
    font-size: clamp(38px, 5vw, 58px);
    font-weight: 700;
    text-shadow: 0 0 20px rgba(14, 165, 233, 0.3);
}

h2 {
    font-size: clamp(30px, 4vw, 42px);
    font-weight: 600;
}

h3 {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 500;
}

h4 {
    font-size: clamp(20px, 2.5vw, 24px);
    font-weight: 500;
}

p {
    margin-bottom: var(--space-md);
    overflow-wrap: break-word;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent);
}

strong {
    font-weight: 600;
}

/* ============================================
   MEDIA ELEMENTS - Overflow prevention
   ============================================ */

img, video, iframe, embed, object, svg {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   LAYOUT UTILITIES
   ============================================ */

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    min-width: 0;
}

.container-wide {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    min-width: 0;
}

.full-bleed {
    width: 100%;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.section {
    padding: var(--space-2xl) 0;
}

.section-lg {
    padding: var(--space-3xl) 0;
}

@media (max-width: 767px) {
    .section {
        padding: var(--space-2xl) 0;
    }
    
    .section-lg {
        padding: var(--space-2xl) 0;
    }
}

/* ============================================
   GRID SYSTEM
   ============================================ */

.grid {
    display: grid;
    gap: var(--space-md);
    min-width: 0;
}

.grid > * {
    min-width: 0;
}

.grid-2 {
    grid-template-columns: 1fr;
}

.grid-3 {
    grid-template-columns: 1fr;
}

.grid-4 {
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .grid-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    
    .grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    
    .grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .grid-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    
    .grid-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* ============================================
   HEADER
   ============================================ */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--background);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(10px);
    transition: background-color 0.3s ease;
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: var(--space-sm) var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-lg);
    min-width: 0;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex-shrink: 0;
}

.logo {
    height: 48px;
    width: auto;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--foreground);
}

/* ============================================
   NAVIGATION
   ============================================ */

.main-nav {
    display: none;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    list-style: none;
    flex-wrap: wrap;
}

.nav-list a {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 500;
    color: var(--foreground);
    padding: var(--space-xs) 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-list a:hover {
    color: var(--primary);
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.nav-list a:hover::after {
    width: 100%;
}

/* Dropdown Navigation */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 500;
    color: var(--foreground);
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-xs) 0;
    transition: color 0.3s ease;
}

.nav-dropdown-toggle:hover {
    color: var(--primary);
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--popover);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: var(--space-xs);
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    min-width: 200px;
    max-width: calc(100vw - var(--space-lg) * 2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

.dark .nav-dropdown-menu {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.nav-dropdown.is-open .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-menu li {
    margin: 0;
}

.nav-dropdown-menu a {
    display: block;
    padding: var(--space-xs) var(--space-sm);
    border-radius: 4px;
    white-space: nowrap;
}

.nav-dropdown-menu a:hover {
    background-color: var(--muted);
}

.nav-dropdown-menu a::after {
    display: none;
}

@media (min-width: 1024px) {
    .main-nav {
        display: block;
    }
}

/* ============================================
   HEADER ACTIONS
   ============================================ */

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex-shrink: 0;
}

.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-xs);
    color: var(--foreground);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.theme-toggle:hover {
    background-color: var(--muted);
}

.theme-icon {
    width: 20px;
    height: 20px;
}

.theme-icon-dark {
    display: none;
}

.dark .theme-icon-light {
    display: none;
}

.dark .theme-icon-dark {
    display: block;
}

/* ============================================
   MOBILE MENU
   ============================================ */

.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-xs);
    z-index: 1001;
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background-color: var(--foreground);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-menu-toggle.is-open .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.is-open .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.is-open .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 1023px) {
    .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--background);
        padding: 80px var(--space-lg) var(--space-lg);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        overflow-y: auto;
    }
    
    .main-nav.is-open {
        opacity: 1;
        visibility: visible;
        display: block;
    }
    
    .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: var(--space-sm);
    }
    
    .nav-list a {
        font-size: 20px;
        padding: var(--space-sm) 0;
    }
    
    .nav-dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        margin-top: var(--space-xs);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .nav-dropdown.is-open .nav-dropdown-menu {
        max-height: 500px;
    }
}

@media (min-width: 1024px) {
    .mobile-menu-toggle {
        display: none;
    }
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    min-height: 48px;
}

.btn:hover {
    transform: scale(1.05);
}

.btn-primary {
    background-color: var(--primary);
    color: var(--primary-foreground);
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 0 30px rgba(14, 165, 233, 0.5);
    color: var(--primary-foreground);
}

.dark .btn-primary {
    background-color: var(--primary);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.4);
}

.dark .btn-primary:hover {
    box-shadow: 0 0 30px rgba(6, 182, 212, 0.6);
}

.btn-secondary {
    background-color: var(--secondary);
    color: var(--secondary-foreground);
}

.btn-secondary:hover {
    background-color: var(--muted-foreground);
    color: var(--secondary-foreground);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--primary-foreground);
}

/* ============================================
   CARDS
   ============================================ */

.card {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: var(--space-lg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-width: 0;
}

@media (max-width: 767px) {
    .card {
        padding: var(--space-md);
    }
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.dark .card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* ============================================
   FORMS
   ============================================ */

.form-group {
    margin-bottom: var(--space-md);
}

.form-label {
    display: block;
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 500;
    margin-bottom: var(--space-xs);
    color: var(--foreground);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    max-width: 100%;
    padding: 12px 16px;
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--foreground);
    background-color: var(--input);
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.form-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

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

.site-footer {
    background-color: var(--card);
    border-top: 1px solid var(--border);
    padding: var(--space-2xl) 0 var(--space-lg);
    margin-top: var(--space-3xl);
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    min-width: 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: 2fr repeat(3, minmax(0, 1fr));
    }
}

.footer-col {
    min-width: 0;
}

.footer-heading {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--foreground);
}

.footer-text {
    font-size: 16px;
    line-height: 1.6;
    color: var(--muted-foreground);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--space-xs);
}

.footer-links a {
    font-size: 16px;
    color: var(--muted-foreground);
    transition: color 0.3s ease;
}

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

.footer-bottom {
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    text-align: center;
    color: var(--muted-foreground);
    font-size: 14px;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.footer-tagline {
    font-family: var(--font-heading);
    font-weight: 500;
    font-style: italic;
}

/* ============================================
   COMPONENTS - FAQ Accordion
   ============================================ */

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.faq-item {
    border: 1px solid var(--muted);
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.faq-item:hover {
    border-color: var(--border);
}

.faq-item.is-active {
    border-left: 4px solid var(--accent);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-sm);
    padding: var(--space-md);
    background-color: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 500;
    color: var(--foreground);
    transition: background-color 0.3s ease;
    min-height: 48px;
}

.faq-question:hover {
    background-color: var(--card);
}

.faq-question-text {
    flex: 1;
    min-width: 0;
}

.faq-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: var(--primary);
}

.faq-icon-minus {
    display: none;
}

.faq-item.is-active .faq-icon-plus {
    display: none;
}

.faq-item.is-active .faq-icon-minus {
    display: block;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.is-active .faq-answer {
    max-height: 1000px;
}

.faq-answer-content {
    padding: 0 var(--space-md) var(--space-md);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--muted-foreground);
}

.faq-answer-content p:last-child {
    margin-bottom: 0;
}

/* ============================================
   COMPONENTS - Icon Feature
   ============================================ */

.icon-feature {
    text-align: center;
    padding: var(--space-lg);
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-width: 0;
}

@media (max-width: 767px) {
    .icon-feature {
        padding: var(--space-md);
    }
}

.icon-feature:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.dark .icon-feature:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.icon-feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-md);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    font-size: 36px;
}

.icon-feature-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--foreground);
}

.icon-feature-description {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--muted-foreground);
    margin-bottom: 0;
}

/* ============================================
   COMPONENTS - Stat Highlight
   ============================================ */

.stat-highlight {
    text-align: center;
    padding: var(--space-lg);
    background-color: var(--card);
    border-radius: 12px;
    position: relative;
    min-width: 0;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: clamp(36px, 5vw, 48px);
    font-weight: 700;
    margin-bottom: var(--space-xs);
    display: block;
}

.stat-color-primary {
    color: var(--primary);
    text-shadow: 0 0 20px rgba(14, 165, 233, 0.4);
}

.stat-color-accent {
    color: var(--accent);
    text-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
}

.dark .stat-color-primary {
    text-shadow: 0 0 20px rgba(6, 182, 212, 0.5);
}

.dark .stat-color-accent {
    text-shadow: 0 0 20px rgba(34, 197, 94, 0.5);
}

.stat-label {
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--foreground);
    margin-bottom: var(--space-xs);
}

.stat-source {
    font-family: monospace;
    font-size: 12px;
    color: var(--muted-foreground);
}

/* ============================================
   COMPONENTS - Use Case Card
   ============================================ */

.use-case-card {
    background-color: var(--card);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-width: 0;
}

.use-case-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.dark .use-case-card:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

.use-case-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.use-case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.use-case-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.4) 100%);
}

.use-case-content {
    padding: var(--space-lg);
}

@media (max-width: 767px) {
    .use-case-content {
        padding: var(--space-md);
    }
}

.use-case-title {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--foreground);
}

.use-case-description {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--muted-foreground);
    margin-bottom: var(--space-sm);
}

.use-case-link {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 500;
    color: var(--primary);
    transition: color 0.3s ease;
}

.use-case-link:hover {
    color: var(--accent);
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

[data-animate] {
    opacity: 0;
    transform: translateY(30px);
}

[data-animate].animated {
    animation: fadeInUp 0.6s ease forwards;
}

.security-badge {
    animation: pulse 2s infinite;
}

/* ============================================
   UTILITIES
   ============================================ */

.text-center {
    text-align: center;
}

.text-primary {
    color: var(--primary);
}

.text-accent {
    color: var(--accent);
}

.mb-0 { margin-bottom: 0; }
.mb-xs { margin-bottom: var(--space-xs); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

.mt-0 { margin-top: 0; }
.mt-xs { margin-top: var(--space-xs); }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

/* ============================================
   CODE BLOCKS - Overflow prevention
   ============================================ */

pre, code, .code-block {
    max-width: 100%;
    overflow-x: auto;
    min-width: 0;
}

pre code {
    display: block;
    white-space: pre;
}

code {
    font-family: monospace;
    font-size: 0.9em;
    background-color: var(--muted);
    padding: 2px 6px;
    border-radius: 4px;
}

pre {
    background-color: var(--muted);
    padding: var(--space-md);
    border-radius: 8px;
    overflow-x: auto;
}

pre code {
    background-color: transparent;
    padding: 0;
}

/* ============================================
   TABLES - Overflow prevention
   ============================================ */

.table-wrapper {
    max-width: 100%;
    overflow-x: auto;
    min-width: 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 0;
}

th, td {
    padding: var(--space-sm);
    text-align: left;
    border-bottom: 1px solid var(--border);
    overflow-wrap: break-word;
}

th {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--foreground);
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* ============================================
   MODAL
   ============================================ */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: var(--space-lg);
}

.modal.is-open {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: var(--background);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: var(--space-xl);
    max-width: 500px;
    width: 100%;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal.is-open .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 24px;
    color: var(--muted-foreground);
    padding: var(--space-xs);
}

.modal-close:hover {
    color: var(--foreground);
}

/* ============================================
   LEGAL DOCUMENT STYLING
   ============================================ */

.legal-document {
    line-height: 1.8;
}

.legal-document h2 {
    margin-top: var(--space-xl);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-xs);
    border-bottom: 2px solid var(--primary);
    color: var(--foreground);
}

.legal-document h3 {
    margin-top: var(--space-lg);
    margin-bottom: var(--space-sm);
    color: var(--foreground);
}

.legal-document p {
    margin-bottom: var(--space-md);
}

.legal-document ul,
.legal-document ol {
    margin-bottom: var(--space-md);
}

.legal-document ul li,
.legal-document ol li {
    margin-bottom: var(--space-xs);
}

.legal-document a {
    color: var(--primary);
    text-decoration: underline;
}

.legal-document a:hover {
    color: var(--accent);
}

.legal-document strong {
    color: var(--foreground);
    font-weight: 600;
}

/* Smooth scroll offset for anchor links in legal docs */
.legal-document section {
    scroll-margin-top: 100px;
}

/* ============================================
   HERO SECTION PATTERNS
   ============================================ */

.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: var(--space-3xl) 0;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.1;
}

.hero-content {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    position: relative;
    z-index: 1;
}

.hero-actions {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
    margin-top: var(--space-lg);
}

/* Circuit pattern background for hero sections */
.circuit-pattern {
    background-image: 
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(100, 116, 139, 0.3) 2px, rgba(100, 116, 139, 0.3) 3px),
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(100, 116, 139, 0.3) 2px, rgba(100, 116, 139, 0.3) 3px);
    background-size: 40px 40px;
}

.dark .circuit-pattern {
    background-image: 
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(51, 65, 85, 0.4) 2px, rgba(51, 65, 85, 0.4) 3px),
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(51, 65, 85, 0.4) 2px, rgba(51, 65, 85, 0.4) 3px);
}