/* Import modern Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* CSS Custom Properties / Design System */
:root {
    --bg-gradient: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    
    /* Brand Palette */
    --text-dark: #0a0f1d;
    --text-muted: #4e596c;
    --text-light: #8290a6;
    --brand-green: #10b981;
    --brand-green-hover: #059669;
    --button-bg: #0a0f1d;
    --button-bg-hover: #1e293b;
    --cyan-icon-bg: #00d2c4;
    --border-color: rgba(15, 23, 42, 0.05);
    
    /* Typography */
    --font-headings: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    
    /* Layout & Shadow Tokens */
    --shadow-premium: 0 20px 40px rgba(15, 23, 42, 0.03), 0 1px 3px rgba(15, 23, 42, 0.01);
    --shadow-hover: 0 30px 60px rgba(15, 23, 42, 0.07), 0 2px 8px rgba(15, 23, 42, 0.02);
    --transition-smooth: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    background: var(--bg-gradient);
    font-family: var(--font-body);
    color: var(--text-dark);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Header Styles */
.header-bar {
    display: flex;
    align-items: center;
    padding: 32px 48px;
    background-color: transparent;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-dark);
    transition: var(--transition-smooth);
}

.logo-container:hover {
    opacity: 0.9;
}

.logo-icon {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    background-color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.logo-icon svg {
    width: 14px;
    height: 14px;
    fill: #ffffff;
}

.logo-text {
    font-family: var(--font-headings);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

/* Main Layout Centering (Home Page) */
.main-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 24px 80px 24px;
}

/* Home Card Styles */
.home-card {
    background-color: var(--card-bg);
    border-radius: 32px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-premium);
    max-width: 860px;
    width: 100%;
    padding: 72px 56px;
    text-align: center;
    transition: var(--transition-smooth);
}

.home-card:hover {
    box-shadow: var(--shadow-hover);
}

.card-tag {
    font-family: var(--font-headings);
    color: var(--brand-green);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    margin-bottom: 24px;
    display: block;
}

.card-title {
    font-family: var(--font-headings);
    font-size: 46px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.025em;
    color: var(--text-dark);
    margin-bottom: 18px;
}

.card-description {
    font-size: 17px;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 620px;
    margin: 0 auto 36px auto;
}

/* App Download Buttons */
.download-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    background-color: var(--button-bg);
    color: #ffffff;
    text-decoration: none;
    padding: 14px 26px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    min-width: 200px;
    box-shadow: 0 4px 12px rgba(10, 15, 29, 0.08);
    transition: var(--transition-smooth);
    border: 1px solid rgba(255, 255, 255, 0.03);
    cursor: pointer;
    text-align: left;
}

.btn-download:hover {
    background-color: var(--button-bg-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(10, 15, 29, 0.16);
}

.btn-download:active {
    transform: translateY(0) scale(0.98);
}

.btn-cyan-badge {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background-color: var(--cyan-icon-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.btn-cyan-badge svg {
    width: 16px;
    height: 16px;
    fill: #ffffff;
}

.btn-text-wrap {
    display: flex;
    flex-direction: column;
}

.btn-small-lbl {
    font-size: 9px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.7;
    margin-bottom: 1px;
}

.btn-store-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.1;
}

.card-footnote {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.5;
    margin: 0;
}

/* Internal Page Styles */
.internal-content {
    max-width: 800px;
    width: 100%;
    margin: 40px auto 80px auto;
    padding: 0 24px;
}

.internal-title {
    font-family: var(--font-headings);
    font-size: 44px;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.internal-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 40px;
}

/* Document Content Styles */
.legal-content {
    margin-top: 24px;
}

.legal-content p {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 18px;
}

.legal-content h2 {
    font-family: var(--font-headings);
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin-top: 40px;
    margin-bottom: 18px;
}

.legal-content h3 {
    font-family: var(--font-headings);
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-top: 28px;
    margin-bottom: 12px;
}

.legal-content a {
    color: var(--brand-green);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.legal-content a:hover {
    color: var(--brand-green-hover);
    text-decoration: underline;
}

/* Nested lists styling */
.legal-content ol, .legal-content ul {
    margin-bottom: 18px;
    padding-left: 0;
}

/* Nested decimal list (1., 1.1., 1.1.1.) */
.legal-content {
    counter-reset: legal-counter;
}

.legal-content li > ol.list-num-nested {
    counter-reset: legal-counter;
}

.legal-content ol.list-num-nested {
    list-style-type: none;
}

.legal-content ol.list-num-nested > li {
    counter-increment: legal-counter;
    position: relative;
    padding-left: 48px;
    margin-bottom: 14px;
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.7;
}

.legal-content ol.list-num-nested > li::before {
    content: counters(legal-counter, ".") ".";
    font-weight: 600;
    color: var(--text-dark);
    position: absolute;
    left: 0;
    width: 38px;
    text-align: left;
}

/* Style main top-level list items (General, Definitions, etc.) to look like section headers */
.legal-content > ol.list-num-nested > li {
    font-family: var(--font-headings);
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    margin-top: 40px;
    margin-bottom: 20px;
    padding-left: 44px;
}

.legal-content > ol.list-num-nested > li::before {
    font-family: var(--font-headings);
    font-weight: 700;
    font-size: 22px;
    width: 34px;
}

/* Styles for sublevel items inside main headers */
.legal-content > ol.list-num-nested > li li {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 400;
    color: var(--text-muted);
    margin-top: 12px;
    margin-bottom: 12px;
    padding-left: 48px;
}

.legal-content > ol.list-num-nested > li li::before {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 16px;
    color: var(--text-dark);
}

/* Alphabetical list (a), b), c)) */
.legal-content ol.list-alpha-nested {
    counter-reset: alpha-counter;
    list-style-type: none;
}

.legal-content ol.list-alpha-nested > li {
    counter-increment: alpha-counter;
    position: relative;
    padding-left: 36px;
    margin-bottom: 12px;
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.7;
}

.legal-content ol.list-alpha-nested > li::before {
    content: counter(alpha-counter, lower-alpha) ") ";
    font-weight: 600;
    color: var(--text-dark);
    position: absolute;
    left: 0;
    width: 28px;
    text-align: left;
}

/* Alphabetical nested level 1 (a., b.) */
.legal-content ol.list-alpha-nested > li li::before {
    content: counter(alpha-counter, lower-alpha) ". ";
}

/* Roman lists (i., ii., iii.) */
.legal-content ol.list-roman-nested {
    counter-reset: roman-counter;
    list-style-type: none;
}

.legal-content ol.list-roman-nested > li {
    counter-increment: roman-counter;
    position: relative;
    padding-left: 36px;
    margin-bottom: 10px;
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.7;
}

.legal-content ol.list-roman-nested > li::before {
    content: counter(roman-counter, lower-roman) ". ";
    font-weight: 600;
    color: var(--text-dark);
    position: absolute;
    left: 0;
    width: 28px;
    text-align: left;
}

/* Bullet list (bullets) */
.legal-content ul.list-bullet-nested {
    list-style-type: disc;
    padding-left: 24px;
}

.legal-content ul.list-bullet-nested > li {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 10px;
    padding-left: 4px;
}

/* Contact Page Specifics */
.contact-card {
    background-color: var(--card-bg);
    border-radius: 24px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-premium);
    padding: 40px;
    margin-top: 24px;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 16px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact-item-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background-color: rgba(16, 185, 129, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-green);
    flex-shrink: 0;
}

.contact-item-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.contact-item-details h4 {
    font-family: var(--font-headings);
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.contact-item-details p, .contact-item-details a {
    font-size: 15px;
    color: var(--text-muted);
    text-decoration: none;
    line-height: 1.5;
}

.contact-item-details a:hover {
    color: var(--brand-green);
}

/* Footer Navigation */
.footer-bar {
    padding: 40px 24px;
    border-top: 1px solid var(--border-color);
    background-color: transparent;
}

.footer-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    list-style: none;
    max-width: 800px;
    margin: 0 auto;
}

.footer-nav li {
    display: flex;
    align-items: center;
}

.footer-nav a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    transition: var(--transition-smooth);
}

.footer-nav a:hover,
.footer-nav li.active a {
    color: var(--text-dark);
    font-weight: 500;
}

.footer-nav .divider {
    color: var(--border-color);
    font-size: 12px;
    margin-left: 12px;
    user-select: none;
}

/* Responsive Media Queries */
@media (max-width: 768px) {
    .header-bar {
        padding: 24px;
    }
    
    .home-card {
        padding: 48px 24px;
        border-radius: 24px;
    }
    
    .card-title {
        font-size: 32px;
        margin-bottom: 14px;
    }
    
    .card-description {
        font-size: 15px;
        margin-bottom: 28px;
    }
    
    .download-buttons {
        flex-direction: column;
        align-items: stretch;
        max-width: 280px;
        margin-left: auto;
        margin-right: auto;
        gap: 12px;
    }
    
    .btn-download {
        min-width: 0;
        width: 100%;
    }
    
    .internal-title {
        font-size: 32px;
    }
    
    .footer-nav {
        flex-direction: column;
        gap: 10px;
    }
    
    .footer-nav .divider {
        display: none;
    }
}
