/* PayMe Design System - Actual colors from app */
:root {
    --primary: #121314;
    --secondary: #3C3D40;
    --hero: #00AE1A;
    --hero-mid: #0A6617;
    --hero-highlight: #D7DEEB;
    --success: #23AC4C;
    --surface: #FAFCFA;
    --surface-z1: #F0F2F0;
    --surface-z2: #E4E5E4;
    --text-primary: #121314;
    --text-secondary: #626366;
    --text-light: #AFB0B2;
    --divider: #D8D9D8;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--surface);
    -webkit-font-smoothing: antialiased;
}

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

/* Content sections stay narrower for better readability */
.content, header, footer {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Header */
header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 48px;
}

.app-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
}

h1 {
    font-family: 'Gabarito', sans-serif;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Hero */
.hero {
    margin-bottom: 48px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    padding-top: 40px;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(to top, var(--hero) 0%, transparent 40%);
    position: relative;
}

.app-screenshot {
    width: 100%;
    height: auto;
    display: block;
    position: relative;
    z-index: 1;
}

.app-store-badge {
    position: absolute;
    top: 4px;
    right: 16px;
    z-index: 2;
    transition: transform 0.2s ease;
}

.app-store-badge:hover {
    transform: scale(1.05);
}

.app-store-badge img {
    height: 36px;
    width: auto;
}

/* Content Sections */
.content {
    margin-bottom: 40px;
}

h2 {
    font-family: 'Gabarito', sans-serif;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

p {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

/* Lists */
.features,
.data-usage {
    list-style: none;
    padding: 0;
}

.features li,
.data-usage li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    color: var(--text-secondary);
}

.features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 700;
}

.data-usage li::before {
    content: "•";
    position: absolute;
    left: 8px;
    color: var(--text-light);
}

.data-usage li strong {
    color: var(--text-primary);
    font-weight: 500;
}

/* Footer */
footer {
    text-align: center;
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--divider);
    font-size: 14px;
    color: var(--text-secondary);
}

footer a {
    color: var(--hero);
    text-decoration: none;
    font-weight: 500;
}

footer a span {
    text-decoration: none;
}

footer a:hover span {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.divider {
    margin: 0 12px;
    color: var(--text-light);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    /* Stack legal columns on mobile/tablet */
    .legal-columns {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 24px 20px;
    }
    
    header {
        margin-bottom: 32px;
    }
    
    .app-icon {
        width: 48px;
        height: 48px;
        border-radius: 12px;
    }
    
    h1 {
        font-size: 28px;
    }
    
    .hero {
        margin-bottom: 32px;
    }
    
    .app-store-badge {
        top: 6px;
        right: 12px;
    }
    
    .app-store-badge img {
        height: 30px;
    }
    
    h2 {
        font-size: 20px;
    }
    
    .content {
        margin-bottom: 32px;
    }
}

/* Legal Section - Side by Side Layout */
.legal-section {
    margin-top: 40px;
    margin-bottom: 40px;
}

.legal-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.legal-column {
    display: flex;
    flex-direction: column;
}

/* Privacy Policy Toggle */
.privacy-toggle {
    width: 100%;
    padding: 12px 16px;
    background: var(--surface-z1);
    border: 1px solid var(--surface-z1);
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}

.privacy-toggle.terms-toggle {
    /* Remove margin-top since they're side by side now */
}

.privacy-toggle:hover {
    background: var(--surface-z2);
    border-color: var(--surface-z2);
}

.privacy-toggle .arrow {
    font-size: 12px;
    color: var(--text-secondary);
    transition: transform 0.2s ease;
}

.privacy-full {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 16px;
    padding: 0;
    opacity: 0;
    transform: translateY(-10px);
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.3s ease,
                transform 0.3s ease,
                padding 0.3s ease;
}

.privacy-full.expanded {
    max-height: 4000px;
    padding: 24px;
    background: var(--surface-z1);
    border-radius: 12px;
    opacity: 1;
    transform: translateY(0);
}

.privacy-full h3 {
    font-family: 'Gabarito', sans-serif;
    font-size: 18px;
    font-weight: 600;
    margin-top: 24px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.privacy-full h3:first-of-type {
    margin-top: 16px;
}

.privacy-full h4 {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 600;
    margin-top: 16px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.privacy-full p {
    margin-bottom: 12px;
}

.privacy-full ul {
    list-style: disc;
    padding-left: 24px;
    margin-bottom: 16px;
}

.privacy-full ul li {
    padding: 4px 0;
    color: var(--text-secondary);
}

.privacy-full a {
    color: var(--hero);
    text-decoration: none;
}

.privacy-full a:hover {
    text-decoration: underline;
}

/* Focus styles for accessibility */
a:focus,
button:focus {
    outline: 2px solid var(--hero);
    outline-offset: 2px;
}
