/* Legal Pages Shared Styles */
/* Matches the main DipSkip theme */

/* Hero Section */
.legal-hero {
    position: relative;
    z-index: 1;
    padding: 180px 0 80px;
    overflow: hidden;
}

.legal-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.legal-hero-bg .gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
}

.legal-hero-bg .orb-1 {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: -100px;
    right: 10%;
}

.legal-hero-bg .orb-2 {
    width: 300px;
    height: 300px;
    background: var(--primary-light);
    bottom: -50px;
    left: 5%;
}

.legal-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.legal-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 50px;
    color: var(--primary-light);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.legal-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.legal-hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.legal-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.legal-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legal-meta i {
    color: var(--primary);
}

/* Table of Contents */
.legal-toc {
    position: relative;
    z-index: 2;
    padding: 2rem 0 3rem;
    margin-top: -2rem;
    background: var(--background);
}

.toc-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 0;
    padding: 2rem;
}

.toc-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

/* Notice Boxes */
.legal-notice {
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary);
    border-radius: 0;
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
}

.legal-notice h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.legal-notice p {
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.legal-notice p:last-child {
    margin-bottom: 0;
}

.legal-notice.notice-warning {
    border-left-color: var(--warning);
    background: rgba(245, 158, 11, 0.03);
}

.legal-notice.notice-warning h3 {
    color: var(--warning);
}

.legal-notice.notice-danger {
    border-left-color: var(--error);
    background: rgba(239, 68, 68, 0.03);
}

.legal-notice.notice-danger h3 {
    color: var(--error);
}

.toc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.toc-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    transition: var(--transition);
}

.toc-item:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.toc-number {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    background: rgba(99, 102, 241, 0.15);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.toc-text {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.9rem;
}

/* Main Content Grid */
.legal-content {
    position: relative;
    z-index: 2;
    padding: 3rem 0 5rem;
}

.legal-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
}

@media (max-width: 1024px) {
    .legal-grid {
        grid-template-columns: 1fr;
    }

    .legal-sidebar {
        order: -1;
    }
}

/* Main Content */
.legal-main {
    min-width: 0;
}

.legal-section {
    margin-bottom: 3rem;
    scroll-margin-top: 100px;
}

.section-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.section-content {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 0;
    padding: 2rem;
}

.section-content p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.section-content h3 {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin: 2rem 0 1rem;
}

.section-content h3:first-child {
    margin-top: 0;
}

.section-content h4 {
    font-size: 1rem;
    color: var(--text-primary);
    margin: 1.5rem 0 0.75rem;
}

/* Lists */
.legal-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.legal-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.legal-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
}

.legal-list li strong {
    color: var(--text-primary);
}

/* Rights List */
.rights-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.rights-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: var(--background);
    border-radius: var(--radius);
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
}

.rights-list li i {
    color: var(--primary);
    margin-top: 0.25rem;
    width: 20px;
    text-align: center;
}

.rights-list li strong {
    color: var(--text-primary);
}

/* Callouts */
/* Callouts - Simple, professional styling */
.info-callout,
.warning-callout,
.danger-callout {
    padding: 1.25rem 1.5rem;
    border-radius: 0;
    margin: 1.5rem 0;
    border-left: 3px solid;
}

.info-callout {
    background: rgba(99, 102, 241, 0.05);
    border-left-color: var(--primary);
}

.warning-callout {
    background: rgba(245, 158, 11, 0.05);
    border-left-color: var(--warning);
}

.danger-callout {
    background: rgba(239, 68, 68, 0.05);
    border-left-color: var(--error);
}

.info-callout p,
.warning-callout p,
.danger-callout p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.7;
}

.danger-callout ul {
    margin: 0;
    color: var(--text-secondary);
}

/* Data Cards Grid */
.data-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.data-card {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    transition: var(--transition);
}

.data-card:hover {
    border-color: var(--primary);
}

.data-icon {
    width: 40px;
    height: 40px;
    background: rgba(99, 102, 241, 0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 1rem;
}

.data-card h4 {
    font-size: 1rem;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
}

.data-card p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

/* Use Cases */
.use-cases {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.use-case {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
}

.use-case:hover {
    border-color: var(--primary);
}

.use-icon {
    width: 40px;
    height: 40px;
    background: rgba(99, 102, 241, 0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}

.use-text h4 {
    font-size: 1rem;
    color: var(--text-primary);
    margin: 0 0 0.25rem 0;
}

.use-text p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

/* Third Party Cards */
.third-party-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.third-party-card {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: var(--transition);
}

.third-party-card:hover {
    border-color: var(--primary);
}

.tp-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.tp-icon {
    width: 40px;
    height: 40px;
    background: rgba(99, 102, 241, 0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.tp-header h4 {
    font-size: 1.125rem;
    color: var(--text-primary);
    margin: 0;
}

.tp-body p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0 0 0.5rem 0;
    line-height: 1.5;
}

.tp-body strong {
    color: var(--text-secondary);
}

.tp-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
}

.tp-link:hover {
    color: var(--primary-light);
}

/* Retention Table */
.retention-table {
    margin-top: 1.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.retention-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid var(--border);
}

.retention-row:last-child {
    border-bottom: none;
}

.retention-type {
    padding: 1rem 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    background: var(--background);
}

.retention-period {
    padding: 1rem 1.25rem;
    color: var(--text-secondary);
}

/* Security Grid */
.security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.security-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
}

.security-item:hover {
    border-color: var(--primary);
}

.security-item i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.security-item h4 {
    font-size: 1rem;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
}

.security-item p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0;
}

/* Contact Card */
.contact-card {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-top: 1.5rem;
}

.contact-info h3 {
    color: white;
    font-size: 1.25rem;
    margin: 0 0 1rem 0;
}

.contact-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.contact-row:last-child {
    margin-bottom: 0;
}

.contact-row i {
    color: rgba(255, 255, 255, 0.8);
    width: 20px;
}

.contact-row a {
    color: white;
    text-decoration: none;
    font-weight: 500;
}

.contact-row a:hover {
    text-decoration: underline;
}

/* Sidebar */
.legal-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 0;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.sidebar-card h4 {
    font-size: 1rem;
    color: var(--text-primary);
    margin: 0 0 1rem 0;
}

.sidebar-card p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0 0 1rem 0;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

.sidebar-link:last-child {
    margin-bottom: 0;
}

.sidebar-link:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.sidebar-link i {
    color: var(--primary);
    width: 20px;
    text-align: center;
}

.btn-block {
    display: flex;
    width: 100%;
    justify-content: center;
}

/* Risk Cards */
.risk-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.risk-card {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: var(--transition);
}

.risk-card:hover {
    border-color: var(--warning);
}

.risk-card.risk-high {
    border-left: 4px solid var(--error);
}

.risk-card.risk-medium {
    border-left: 4px solid var(--warning);
}

.risk-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.risk-icon {
    width: 45px;
    height: 45px;
    background: rgba(245, 158, 11, 0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--warning);
    font-size: 1.25rem;
}

.risk-card.risk-high .risk-icon {
    background: rgba(239, 68, 68, 0.15);
    color: var(--error);
}

.risk-header h4 {
    font-size: 1.125rem;
    color: var(--text-primary);
    margin: 0;
}

.risk-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .legal-hero {
        padding: 140px 0 60px;
    }

    .legal-hero h1 {
        font-size: 2.5rem;
    }

    .legal-meta {
        flex-direction: column;
        gap: 0.75rem;
    }

    .toc-grid {
        grid-template-columns: 1fr;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .section-content {
        padding: 1.5rem;
    }

    .retention-row {
        grid-template-columns: 1fr;
    }

    .retention-type {
        border-bottom: 1px solid var(--border);
    }
}
