@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

/* Basic styles for terms and privacy pages */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.legal-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 40px;
    margin: 20px 0;
}

h1 {
    color: #7c22ff;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
    border-bottom: 3px solid #7c22ff;
    padding-bottom: 1rem;
}

h2 {
    color: #5a0bad;
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    border-left: 4px solid #7c22ff;
    padding-left: 1rem;
}

h3 {
    color: #6b0fd4;
    font-size: 1.2rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1rem;
    text-align: justify;
}

ul, ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

li {
    margin-bottom: 0.5rem;
}

.toc {
    background: #f8f6ff;
    border: 1px solid #e4daff;
    border-radius: 6px;
    padding: 20px;
    margin: 20px 0;
}

.toc h2 {
    margin-top: 0;
    color: #7c22ff;
    border: none;
    padding: 0;
}

.toc ul {
    list-style: none;
    padding-left: 0;
}

.toc li {
    margin-bottom: 0.3rem;
}

.toc a {
    color: #7c22ff;
    text-decoration: none;
    padding: 2px 0;
    display: block;
}

.toc a:hover {
    color: #5a0bad;
    text-decoration: underline;
}

strong {
    color: #5a0bad;
}

a {
    color: #7c22ff;
    text-decoration: none;
    word-wrap: break-word;
}

a:hover {
    color: #5a0bad;
    text-decoration: underline;
}

.contact-info {
    background: #f8f6ff;
    border-left: 4px solid #7c22ff;
    padding: 20px;
    margin: 20px 0;
    border-radius: 0 6px 6px 0;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .legal-container {
        padding: 20px;
        margin: 10px 0;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.3rem;
    }
}

/* Shared Policies Header */
.policy-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #ffffff;
    border-bottom: 1px solid #e4daff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.policy-header__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px 24px; /* higher header height */
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.policy-header__brand {
    /* Keep brand consistent with page body font */
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-weight: 700;
    letter-spacing: 0.02em;
    font-size: clamp(1.25rem, 2.5vw, 1.5rem); /* text-xl ~ sm:text-2xl */
    color: #5a0bad; /* consistent accent color with the theme */
    text-decoration: none; /* no underline on click/hover */
}

.policy-header__brand:hover,
.policy-header__brand:active,
.policy-header__brand:focus {
    text-decoration: none;
}

.policy-header__menu {
    position: relative;
}

.policy-header__dropdown-toggle {
    background: #f8f6ff;
    border: 1px solid #e4daff;
    color: #5a0bad;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; /* match homepage body font */
    display: inline-flex;
    align-items: center;
}

.policy-header__dropdown-toggle:focus {
    outline: 3px solid rgba(124,34,255,0.25);
}

/* arrow indicator */
.policy-header__dropdown-toggle::after {
    content: "";
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #5a0bad;
    margin-left: 8px;
    transform-origin: 50% 40%;
    transition: transform 160ms ease;
}

.policy-header__dropdown-toggle[aria-expanded="true"]::after {
    transform: rotate(180deg);
}

.policy-header__dropdown {
    position: absolute;
    right: 0;
    margin-top: 8px;
    min-width: 320px; /* wider dropdown */
    background: #ffffff;
    border: 1px solid #e4daff;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    border-radius: 8px;
    list-style: none;
    padding: 8px 0;
    display: none;
}

.policy-header__dropdown[aria-hidden="false"] {
    display: block;
}

.policy-header__dropdown li a {
    display: block;
    padding: 12px 16px;
    color: #333;
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 1rem;
    text-decoration: none; /* prevent global underline in dropdown */
}

.policy-header__dropdown li a:hover {
    background: #f8f6ff;
    color: #5a0bad;
    text-decoration: none; /* keep underline off on hover */
}

.policy-header__dropdown [aria-current="page"] {
    font-weight: 600;
    color: #7c22ff;
    text-decoration: none; /* no underline when current */
}

.policy-header__dropdown a[aria-current="page"]:hover,
.policy-header__dropdown a:active,
.policy-header__dropdown a:focus {
    text-decoration: none; /* ensure selected/active has no underline */
}