/* ==========================================================================
   TIMESEAL PRIVACY POLICY - HEAVY DUTY INDUSTRIAL STYLING
   Official Design System matching TimeSeal Android Application
   ========================================================================== */

/* Reset & Box Sizing */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Industrial Theme Colors */
    --color-yellow: #FFD600;
    --color-yellow-hover: #FFE14D;
    --color-yellow-dim: rgba(255, 214, 0, 0.12);
    --color-yellow-border: rgba(255, 214, 0, 0.40);
    --color-yellow-glow: rgba(255, 214, 0, 0.20);
    
    /* Chassis & Gunmetal Surfaces */
    --bg-deep: #0B0E14;
    --bg-card: #121720;
    --bg-card-alt: #161D28;
    --bg-card-hover: #1A2230;
    --border-subtle: #242D3B;
    --border-medium: #303B4D;
    
    /* Typography */
    --text-primary: #FFFFFF;
    --text-secondary: #94A3B8;
    --text-muted: #64748B;
    --font-heading: 'Chakra Petch', 'Inter', -apple-system, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    /* Accent Status */
    --color-green: #00E676;
    --color-red: #FF5252;
    --color-blue: #40C4FF;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-deep);
    color: var(--text-primary);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    overflow-x: hidden;
}

/* Tactical Background Grid Pattern */
.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: 
        linear-gradient(to right, rgba(255, 214, 0, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 214, 0, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 920px;
    margin: 0 auto;
    padding: 32px 20px 80px;
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   HEADER SECTION
   ========================================================================== */
.header {
    text-align: center;
    padding: 40px 0 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.app-icon-container {
    margin-bottom: 18px;
    position: relative;
}

.app-icon-housing {
    width: 88px;
    height: 88px;
    background: #141920;
    border: 2px solid var(--color-yellow);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 24px var(--color-yellow-glow);
    clip-path: polygon(
        16px 0%, calc(100% - 16px) 0%,
        100% 16px, 100% calc(100% - 16px),
        calc(100% - 16px) 100%, 16px 100%,
        0% calc(100% - 16px), 0% 16px
    );
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.app-icon-housing:hover {
    transform: scale(1.05);
    box-shadow: 0 0 36px rgba(255, 214, 0, 0.35);
}

.app-icon-img {
    border-radius: 8px;
    object-fit: cover;
}

.header-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--color-yellow-dim);
    border: 1px solid var(--color-yellow-border);
    padding: 4px 12px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--color-yellow);
    font-family: var(--font-mono);
    margin-bottom: 14px;
    clip-path: polygon(6px 0, calc(100% - 6px) 0, 100% 6px, 100% calc(100% - 6px), calc(100% - 6px) 100%, 6px 100%, 0 calc(100% - 6px), 0 6px);
}

.status-dot {
    width: 7px;
    height: 7px;
    background: var(--color-yellow);
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.9); opacity: 0.8; }
    50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 8px var(--color-yellow); }
    100% { transform: scale(0.9); opacity: 0.8; }
}

.app-title {
    font-family: var(--font-heading);
    font-size: 3.2rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-primary);
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: 6px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.tagline {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 580px;
    margin-bottom: 8px;
}

.developer {
    font-size: 0.88rem;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.developer strong {
    color: var(--color-yellow);
}

/* ==========================================================================
   NAVIGATION MENU (TACTICAL BAR)
   ========================================================================== */
.nav-menu {
    display: flex;
    gap: 8px;
    background: rgba(18, 23, 32, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 6px;
    margin: 24px 0 40px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    position: sticky;
    top: 16px;
    z-index: 100;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.nav-menu::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Edge */
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    font-family: var(--font-heading);
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.2s ease;
    border-radius: 4px;
    clip-path: polygon(6px 0, calc(100% - 6px) 0, 100% 6px, 100% calc(100% - 6px), calc(100% - 6px) 100%, 6px 100%, 0 calc(100% - 6px), 0 6px);
}

.nav-item:hover {
    color: var(--text-primary);
    background: rgba(255, 214, 0, 0.08);
}

.nav-item.active {
    background: var(--color-yellow);
    color: #000000;
    font-weight: 800;
}

.nav-item.active svg {
    stroke: #000000;
}

/* ==========================================================================
   SECTIONS & CARDS
   ========================================================================== */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.section {
    scroll-margin-top: 90px;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.section-number {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-yellow);
    background: var(--color-yellow-dim);
    border: 1px solid var(--color-yellow-border);
    padding: 3px 8px;
    clip-path: polygon(4px 0, calc(100% - 4px) 0, 100% 4px, 100% calc(100% - 4px), calc(100% - 4px) 100%, 4px 100%, 0 calc(100% - 4px), 0 4px);
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    color: var(--text-primary);
    text-transform: uppercase;
}

.section-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 24px;
    max-width: 780px;
}

/* Industrial Card */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    padding: 24px;
    margin-bottom: 18px;
    position: relative;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px), 0 10px);
}

.card:hover {
    border-color: var(--color-yellow-border);
    background: var(--bg-card-hover);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.card h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.card p {
    color: var(--text-secondary);
    font-size: 0.94rem;
    line-height: 1.6;
    margin-bottom: 12px;
}

.card p:last-child {
    margin-bottom: 0;
}

/* Card Hero with Yellow Bar */
.card-hero {
    display: flex;
    padding: 0;
    overflow: hidden;
}

.hero-bar {
    width: 6px;
    background: var(--color-yellow);
    flex-shrink: 0;
}

.hero-content {
    padding: 24px;
    flex-grow: 1;
}

.meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    flex-wrap: wrap;
    gap: 8px;
}

.meta-tag {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--color-yellow);
    background: var(--color-yellow-dim);
    padding: 2px 8px;
    border: 1px solid var(--color-yellow-border);
}

.meta-date {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Highlights Grid */
.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.highlight-item {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    padding: 20px;
    clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px), 0 8px);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.highlight-item:hover {
    transform: translateY(-2px);
    border-color: var(--color-yellow-border);
}

.highlight-icon {
    width: 44px;
    height: 44px;
    background: #19202B;
    border: 1px solid var(--border-medium);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-yellow);
    margin-bottom: 14px;
    clip-path: polygon(6px 0, calc(100% - 6px) 0, 100% 6px, 100% calc(100% - 6px), calc(100% - 6px) 100%, 6px 100%, 0 calc(100% - 6px), 0 6px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    transition: all 0.2s ease;
}

.highlight-item:hover .highlight-icon {
    border-color: var(--color-yellow-border);
    background: rgba(255, 214, 0, 0.08);
    box-shadow: 0 0 12px var(--color-yellow-glow);
}

.highlight-item h4 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    color: var(--color-yellow);
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.highlight-item p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ==========================================================================
   PERMISSIONS GRID
   ========================================================================== */
.permission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.permission-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    padding: 20px;
    display: flex;
    flex-direction: column;
    clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px), 0 10px);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.permission-card:hover {
    border-color: var(--color-yellow-border);
    transform: translateY(-2px);
}

.permission-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.permission-badge {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 8px;
    letter-spacing: 0.5px;
}

.permission-badge.required {
    background: rgba(255, 82, 82, 0.15);
    color: var(--color-red);
    border: 1px solid rgba(255, 82, 82, 0.4);
}

.permission-badge.optional {
    background: var(--color-yellow-dim);
    color: var(--color-yellow);
    border: 1px solid var(--color-yellow-border);
}

.permission-badge.standard {
    background: rgba(64, 196, 255, 0.12);
    color: var(--color-blue);
    border: 1px solid rgba(64, 196, 255, 0.4);
}

.permission-icon {
    width: 36px;
    height: 36px;
    background: #19202B;
    border: 1px solid var(--border-medium);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-yellow);
    clip-path: polygon(6px 0, calc(100% - 6px) 0, 100% 6px, 100% calc(100% - 6px), calc(100% - 6px) 100%, 6px 100%, 0 calc(100% - 6px), 0 6px);
}

.permission-card h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.permission-card code {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--color-yellow);
    background: #0B0E14;
    padding: 3px 6px;
    border: 1px solid var(--border-subtle);
    margin-bottom: 12px;
    display: inline-block;
    word-break: break-all;
}

.permission-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.55;
    flex-grow: 1;
}

/* ==========================================================================
   DATA SPEC GRID
   ========================================================================== */
.card-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    flex-wrap: wrap;
    gap: 8px;
}

.pill-badge {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    color: #000000;
    background: var(--color-yellow);
    padding: 3px 8px;
    clip-path: polygon(4px 0, calc(100% - 4px) 0, 100% 4px, 100% calc(100% - 4px), calc(100% - 4px) 100%, 4px 100%, 0 calc(100% - 4px), 0 4px);
}

.data-spec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.spec-card {
    background: #0D1117;
    border: 1px solid var(--border-subtle);
    padding: 16px;
    clip-path: polygon(6px 0, calc(100% - 6px) 0, 100% 6px, 100% calc(100% - 6px), calc(100% - 6px) 100%, 6px 100%, 0 calc(100% - 6px), 0 6px);
}

.spec-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.8px;
    margin-bottom: 4px;
}

.spec-value {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-yellow);
    margin-bottom: 8px;
}

.spec-card p {
    font-size: 0.84rem;
    color: var(--text-secondary);
    line-height: 1.45;
}

/* Bullet list */
.bullet-list {
    list-style: none;
    margin: 16px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bullet-list li {
    font-size: 0.92rem;
    color: var(--text-secondary);
    padding-left: 20px;
    position: relative;
}

.bullet-list li::before {
    content: "■";
    position: absolute;
    left: 0;
    color: var(--color-yellow);
    font-size: 0.65rem;
    top: 5px;
}

.bullet-list strong {
    color: var(--text-primary);
}

.privacy-links {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.link-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-card-alt);
    border: 1px solid var(--border-medium);
    padding: 8px 16px;
    color: var(--color-yellow);
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 600;
    font-family: var(--font-heading);
    transition: all 0.2s ease;
    clip-path: polygon(6px 0, calc(100% - 6px) 0, 100% 6px, 100% calc(100% - 6px), calc(100% - 6px) 100%, 6px 100%, 0 calc(100% - 6px), 0 6px);
}

.link-button:hover {
    background: var(--color-yellow);
    color: #000000;
    border-color: var(--color-yellow);
}

.link-button:hover svg {
    stroke: #000000;
}

.code-box {
    background: #0B0E14;
    border: 1px solid var(--border-subtle);
    padding: 12px 16px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--color-yellow);
    margin-top: 10px;
    clip-path: polygon(6px 0, calc(100% - 6px) 0, 100% 6px, 100% calc(100% - 6px), calc(100% - 6px) 100%, 6px 100%, 0 calc(100% - 6px), 0 6px);
}

/* ==========================================================================
   CONTACT CARD
   ========================================================================== */
.card-contact {
    border-color: var(--color-yellow-border);
    background: linear-gradient(180deg, #161D28 0%, #121720 100%);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
}

.contact-badge {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--color-yellow);
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 20px 0;
    background: #0B0E14;
    border: 1px solid var(--border-subtle);
    padding: 16px;
    clip-path: polygon(6px 0, calc(100% - 6px) 0, 100% 6px, 100% calc(100% - 6px), calc(100% - 6px) 100%, 6px 100%, 0 calc(100% - 6px), 0 6px);
}

.detail-row {
    display: flex;
    font-size: 0.9rem;
    gap: 12px;
}

.detail-label {
    font-family: var(--font-mono);
    color: var(--text-muted);
    width: 140px;
    font-size: 0.78rem;
    flex-shrink: 0;
}

.detail-value {
    color: var(--text-primary);
    font-weight: 600;
}

.email-link {
    color: var(--color-yellow);
    text-decoration: none;
    font-family: var(--font-mono);
    font-weight: 600;
    transition: color 0.2s ease;
}

.email-link:hover {
    text-decoration: underline;
    color: var(--color-yellow-hover);
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--color-yellow);
    color: #000000;
    text-decoration: none;
    padding: 12px 24px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.92rem;
    letter-spacing: 0.8px;
    transition: all 0.2s ease;
    clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px), 0 8px);
}

.cta-button:hover {
    background: var(--color-yellow-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px var(--color-yellow-glow);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    margin-top: 60px;
    text-align: center;
}

.footer-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-subtle), var(--color-yellow-border), var(--border-subtle), transparent);
    margin-bottom: 24px;
}

.footer-content p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-content strong {
    color: var(--text-primary);
}

.footer-meta {
    font-family: var(--font-mono);
    font-size: 0.75rem !important;
    color: var(--color-yellow) !important;
    opacity: 0.7;
    margin-top: 6px;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 768px) {
    .container {
        padding: 16px 12px 60px;
    }

    .app-title {
        font-size: 2.2rem;
    }

    .tagline {
        font-size: 0.95rem;
    }

    .nav-menu {
        padding: 5px 8px;
        gap: 6px;
        margin: 16px 0 32px;
        scroll-padding-left: 12px;
        scroll-padding-right: 12px;
    }

    .nav-item {
        padding: 7px 11px;
        font-size: 0.72rem;
        gap: 6px;
    }

    .nav-item svg {
        width: 15px;
        height: 15px;
    }

    .card {
        padding: 16px;
    }

    .detail-row {
        flex-direction: column;
        gap: 2px;
    }

    .detail-label {
        width: auto;
    }
}
