/* ================================================================
   Volta Plugins — Legal pages stylesheet
   Shared styling for privacy.html, terms.html, eula.html
   ================================================================ */

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

html {
    -webkit-text-size-adjust: 100%;
}

body {
    background: #0a0a0a;
    color: #ecf0f1;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.7;
    font-size: 16px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: #3498db;
    color: #fff;
    padding: 0.5rem 1rem;
    text-decoration: none;
    z-index: 100;
}
.skip-link:focus {
    left: 1rem;
    top: 1rem;
}

/* ================================================================
   Top nav
   ================================================================ */
.legal-nav {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(52, 152, 219, 0.1);
    display: flex;
    align-items: center;
}

.legal-nav a {
    display: inline-block;
    line-height: 0;
    transition: opacity 0.2s ease;
}

.legal-nav a:hover,
.legal-nav a:focus-visible {
    opacity: 0.8;
    outline: none;
}

.legal-nav img {
    height: 60px;
    width: auto;
}

/* ================================================================
   Main content
   ================================================================ */
.legal-main {
    flex: 1;
    max-width: 760px;
    margin: 0 auto;
    padding: 3rem 2rem 4rem;
    width: 100%;
}

.legal-header {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(52, 152, 219, 0.2);
}

.legal-header h1 {
    font-size: 2.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
    color: #ecf0f1;
}

.legal-meta {
    color: #95a5a6;
    font-size: 0.95rem;
}

.legal-content h2 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: #ecf0f1;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(52, 152, 219, 0.15);
}

.legal-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
    color: #ecf0f1;
}

.legal-content p {
    margin-bottom: 1rem;
    color: #cfd5d7;
}

.legal-content ul,
.legal-content ol {
    margin: 0 0 1rem;
    padding-left: 1.5rem;
    color: #cfd5d7;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

.legal-content li::marker {
    color: #3498db;
}

.legal-content strong {
    color: #ecf0f1;
    font-weight: 600;
}

.legal-content a {
    color: #3498db;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

.legal-content a:hover,
.legal-content a:focus-visible {
    color: #5dade2;
    outline: none;
}

.legal-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0 2rem;
    font-size: 0.95rem;
}

.legal-content th,
.legal-content td {
    text-align: left;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(52, 152, 219, 0.15);
    vertical-align: top;
}

.legal-content th {
    color: #ecf0f1;
    font-weight: 600;
    background: rgba(52, 152, 219, 0.06);
}

.legal-content td {
    color: #cfd5d7;
}

.legal-callout {
    background: rgba(52, 152, 219, 0.08);
    border-left: 3px solid rgba(52, 152, 219, 0.5);
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    border-radius: 0 4px 4px 0;
    color: #cfd5d7;
}

.legal-callout p {
    margin-bottom: 0.5rem;
}
.legal-callout p:last-child {
    margin-bottom: 0;
}

.legal-all-caps {
    font-family: inherit;
    font-size: 0.92rem;
    line-height: 1.8;
    color: #cfd5d7;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(52, 152, 219, 0.12);
    padding: 1rem 1.25rem;
    margin: 1rem 0;
    border-radius: 4px;
}

.legal-back {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(52, 152, 219, 0.15);
}

.legal-back a {
    color: #3498db;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.legal-back a:hover,
.legal-back a:focus-visible {
    color: #5dade2;
    outline: none;
}

/* ================================================================
   Footer
   ================================================================ */
.legal-footer {
    padding: 2rem;
    text-align: center;
    border-top: 1px solid rgba(52, 152, 219, 0.1);
    background: #080808;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 0 0 1.5rem;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #95a5a6;
    background: rgba(52, 152, 219, 0.08);
    border: 1px solid rgba(52, 152, 219, 0.2);
    text-decoration: none;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.footer-social a:hover,
.footer-social a:focus-visible {
    color: #ecf0f1;
    background: rgba(52, 152, 219, 0.18);
    border-color: rgba(52, 152, 219, 0.45);
    transform: translateY(-1px);
    outline: none;
}

.footer-social svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.legal-footer p {
    color: #95a5a6;
    font-size: 0.85rem;
    margin: 0.5rem 0;
}

.legal-footer-links {
    margin-top: 0.75rem !important;
}

.legal-footer-links a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.2s ease;
}

.legal-footer-links a:hover,
.legal-footer-links a:focus-visible {
    color: #5dade2;
    outline: none;
}

.legal-footer-links span {
    color: #4a4a4a;
    margin: 0 0.5rem;
}

/* ================================================================
   Responsive
   ================================================================ */
@media (max-width: 640px) {
    .legal-nav {
        padding: 1rem 1.25rem;
    }
    .legal-nav img {
        height: 48px;
    }
    .legal-main {
        padding: 2rem 1.25rem 3rem;
    }
    .legal-header {
        margin-bottom: 2rem;
        padding-bottom: 1.5rem;
    }
    .legal-header h1 {
        font-size: 1.75rem;
    }
    .legal-content h2 {
        font-size: 1.2rem;
        margin-top: 2rem;
    }
    .legal-content h3 {
        font-size: 1.05rem;
    }
    .legal-footer {
        padding: 1.5rem 1.25rem;
    }
    .legal-content table {
        font-size: 0.88rem;
    }
    .legal-content th,
    .legal-content td {
        padding: 0.5rem 0.75rem;
    }
}
