/* Shared styles for all legal documents - Matching Rewired App Design */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.8;
    color: #ffffff;
    background: linear-gradient(135deg, #0A0A0A 0%, #1A1A1A 50%, #0F0F0F 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: #1C1C1C; /* Solid dark gray to match app cards */
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(140, 140, 255, 0.2), 0 2px 10px rgba(0, 0, 0, 0.5);
    padding: 50px 40px;
    border: 1px solid rgba(140, 140, 255, 0.1);
}

h1 {
    color: #8C8CFF;
    margin-bottom: 10px;
    font-size: 2.5em;
    font-weight: 700;
    text-shadow: 0 0 20px rgba(140, 140, 255, 0.3);
}

h2 {
    color: #ffffff;
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 1.8em;
    border-bottom: 2px solid #8C8CFF;
    padding-bottom: 10px;
    font-weight: 600;
}

h3 {
    color: #e0e0e0;
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.3em;
    font-weight: 600;
}

p {
    margin-bottom: 15px;
    color: #d0d0d0;
}

ul, ol {
    margin-left: 30px;
    margin-bottom: 20px;
}

li {
    margin-bottom: 10px;
    color: #d0d0d0;
}

a {
    color: #8C8CFF;
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    color: #A5A5FF;
    text-decoration: underline;
    text-shadow: 0 0 10px rgba(140, 140, 255, 0.5);
}

.back-link {
    display: inline-block;
    margin-bottom: 30px;
    color: #8C8CFF;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.back-link:hover {
    background: rgba(140, 140, 255, 0.1);
    text-decoration: none;
    transform: translateX(-2px);
}

strong {
    color: #ffffff;
    font-weight: 600;
}

/* Homepage specific styles */
body.homepage {
    background: linear-gradient(135deg, #0A0A0A 0%, #1A1A1A 50%, #0F0F0F 100%);
    min-height: 100vh;
    padding: 40px 20px;
    position: relative;
    overflow-x: hidden;
}

/* Subtle animated background effect */
body.homepage::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(140, 140, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(107, 95, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
    animation: pulse 8s ease-in-out infinite;
}

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

body.homepage .container {
    max-width: 800px;
    padding: 60px 40px;
    position: relative;
    z-index: 1;
    background: #1C1C1C; /* Solid dark gray to match app cards */
}

.subtitle {
    color: #b0b0b0;
    margin-bottom: 40px;
    font-size: 1.1em;
}

.links {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 40px;
}

.link-card {
    display: block;
    padding: 25px 30px;
    background: linear-gradient(135deg, #8C8CFF 0%, #6B5FFF 100%);
    color: white;
    text-decoration: none;
    border-radius: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(140, 140, 255, 0.4), 0 2px 8px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.link-card:hover::before {
    left: 100%;
}

.link-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(140, 140, 255, 0.6), 0 4px 12px rgba(0, 0, 0, 0.4);
}

.link-card h2 {
    margin-bottom: 8px;
    font-size: 1.5em;
    color: #ffffff;
    border: none;
    padding: 0;
    margin-top: 0;
    font-weight: 600;
}

.link-card p {
    opacity: 0.95;
    font-size: 0.95em;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 0;
}

.footer {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(140, 140, 255, 0.2);
    text-align: center;
    color: #b0b0b0;
    font-size: 0.9em;
}

.footer a {
    color: #8C8CFF;
}

.footer a:hover {
    color: #A5A5FF;
}

@media (max-width: 600px) {
    .container {
        padding: 30px 20px;
    }
    
    body.homepage .container {
        padding: 40px 25px;
    }
    
    h1 {
        font-size: 2em;
    }
    
    h2 {
        font-size: 1.5em;
    }
}

/* Scrollbar styling for dark theme */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: rgba(140, 140, 255, 0.3);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(140, 140, 255, 0.5);
}
