/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fafafa;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: 'Outfit', 'Inter', sans-serif;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
    font-weight: 600;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

h4 {
    font-size: 1.25rem;
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
    color: #4a4a4a;
    line-height: 1.7;
}

a {
    color: #2563eb;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

li {
    margin-bottom: 0.5rem;
    color: #4a4a4a;
    line-height: 1.7;
}

/* Container and Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.main {
    min-height: 100vh;
    background-color: #ffffff;
}

.content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

/* Header */
.header {
    background-color: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav {
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.nav-logo .logo {
    height: 40px;
    width: auto;
}

.btn-download {
    background-color: #2563eb;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.btn-download:hover {
    background-color: #1d4ed8;
    text-decoration: none;
    color: white;
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 3rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    margin-bottom: 3rem;
    border-radius: 12px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    color: white;
}

/* Navigation Links */
.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-link {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
    color: #4b5563;
}

.nav-link:hover {
    background-color: #f3f4f6;
    color: #1f2937;
    text-decoration: none;
}

.nav-link.active {
    background-color: #2563eb;
    color: white;
}

.nav-link.active:hover {
    background-color: #1d4ed8;
    color: white;
}

/* Sections */
.section-header {
    margin-bottom: 2.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e5e7eb;
}

.section-title {
    font-size: 2.25rem;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 1rem;
    color: #6b7280;
    font-weight: 400;
}

.terms-section,
.privacy-section,
.delete-account-section {
    margin-bottom: 4rem;
}

/* Term Items */
.term-item {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.term-item:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-color: #d1d5db;
}

.term-item {
    display: flex;
    gap: 1.5rem;
}

.term-number {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-bottom: 0;
}

.term-content {
    flex: 1;
}

.term-title {
    font-size: 1.5rem;
    color: #1a1a1a;
    margin-bottom: 1rem;
    font-weight: 600;
}

/* Footer */
.footer {
    background-color: #1f2937;
    color: white;
    padding: 3rem 0;
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
}

.footer-logo .logo {
    height: 36px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-info p {
    color: #d1d5db;
    margin-bottom: 0.5rem;
}

.footer-info a {
    color: #60a5fa;
}

.footer-info a:hover {
    color: #93c5fd;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .nav-container {
        padding: 0 1rem;
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }
    
    .content {
        padding: 1rem 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-section {
        padding: 2rem 0;
        margin-bottom: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .term-item {
        flex-direction: column;
        padding: 1.5rem;
        gap: 1rem;
    }
    
    .term-number {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1rem;
        align-self: flex-start;
    }
    
    .term-title {
        font-size: 1.25rem;
    }
    
    .btn-download {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 0.875rem;
    }
    
    .term-item {
        padding: 1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer {
        display: none;
    }
    
    .hero-section {
        background: none !important;
        color: #000 !important;
        border: 1px solid #ccc;
    }
    
    .hero-title,
    .hero-subtitle {
        color: #000 !important;
    }
    
    .term-item {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}

/* Steps Grid Layout */
.steps-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    grid-template-rows: auto auto !important;
    gap: 2rem;
    margin-bottom: 2rem;
    width: 100%;
}

.step-item {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    width: 100%;
    min-height: 200px;
}

.step-item:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-color: #d1d5db;
}

.step-number {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-bottom: 0;
}

.step-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.step-title {
    font-size: 1.1rem;
    color: #1a1a1a;
    margin-bottom: 0;
    font-weight: 600;
    line-height: 1.4;
}

.step-image {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.step-images-horizontal {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.instruction-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    max-height: 300px;
    object-fit: contain;
}

.step-images-horizontal .instruction-image {
    max-width: 45%;
    flex: 1;
    min-width: 150px;
}

/* Responsive Design for Steps Grid */
@media (max-width: 768px) {
    .steps-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }
    
    .step-item {
        padding: 1.25rem;
    }
    
    .step-number {
        width: 2rem;
        height: 2rem;
        font-size: 1rem;
    }
    
    .step-title {
        font-size: 1rem;
    }
    
    .instruction-image {
        max-height: 250px;
    }
    
    .step-images-horizontal {
        flex-direction: column;
        gap: 1rem;
    }
    
    .step-images-horizontal .instruction-image {
        max-width: 80%;
        min-width: unset;
    }
}

@media (max-width: 480px) {
    .steps-grid {
        gap: 1rem;
    }
    
    .step-item {
        padding: 1rem;
    }
    
    .instruction-image {
        max-height: 200px;
    }
}

/* Warning Box */
.warning-box {
    background-color: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin-top: 2rem;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.warning-box p {
    margin: 0;
    color: #92400e;
    font-weight: 500;
    font-size: 1rem;
}

/* Accessibility Enhancements */
.term-item:focus-within,
.step-item:focus-within {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}