/* Text Page Styles - For Privacy Policy, Terms of Service, Warranty, etc. */

.page-header {
    text-align: center;
    margin-bottom: 4rem;
    padding: 4rem 0 3rem;
    border-bottom: 1px solid var(--color-border);
}

.page-header__title {
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    color: var(--color-text);
}

.page-header__subtitle {
    color: var(--color-text-secondary);
    font-size: 1.125rem;
    font-weight: 400;
}

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

.text-section {
    margin-bottom: 4rem;
    padding-bottom: 2rem;
}

.text-section:not(:last-child) {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.text-section h2 {
    font-size: 1.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--color-text);
    letter-spacing: -0.01em;
}

.text-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.text-section h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--color-text);
}

.text-section p {
    margin-bottom: 1.25rem;
    line-height: 1.75;
    color: var(--color-text-secondary);
    font-size: 1.0625rem;
}

.text-section ul,
.text-section ol {
    margin-left: 0;
    margin-bottom: 1.5rem;
    list-style: none;
    padding-left: 0;
}

.text-section li {
    position: relative;
    margin-bottom: 0.875rem;
    line-height: 1.75;
    padding-left: 2rem;
    color: var(--color-text-secondary);
    font-size: 1.0625rem;
}

.text-section ul li::before {
    content: "•";
    position: absolute;
    left: 0.5rem;
    color: var(--color-primary);
    font-weight: bold;
}

.text-section ol {
    counter-reset: list-counter;
}

.text-section ol li {
    counter-increment: list-counter;
}

.text-section ol li::before {
    content: counter(list-counter) ".";
    position: absolute;
    left: 0.5rem;
    color: var(--color-primary);
    font-weight: 600;
}

.text-section li strong {
    color: var(--color-text);
    font-weight: 600;
}

.text-section a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s ease;
}

.text-section a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.text-section address {
    font-style: normal;
    line-height: 1.75;
    color: var(--color-text-secondary);
}

.text-section blockquote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    background-color: var(--color-background-secondary);
    border-left: 4px solid var(--color-primary);
    font-style: italic;
}

.text-section table {
    width: 100%;
    margin: 2rem 0;
    border-collapse: collapse;
}

.text-section table th,
.text-section table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

.text-section table th {
    font-weight: 600;
    color: var(--color-text);
    background-color: var(--color-background-secondary);
}

.text-section:first-child h2 {
    margin-top: 0;
}

/* CMS bodies are one section, so the rule between topics has to hang off each
   heading rather than the section boundary. */
.text-section--flow > h2 {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.text-section--flow > h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

/* Utility classes for text pages */
.text-highlight {
    background-color: rgba(var(--color-primary-rgb), 0.1);
    padding: 0.125rem 0.25rem;
    border-radius: 0.25rem;
}

.text-muted {
    color: var(--color-text-muted);
    font-size: 0.9375rem;
}

.text-important {
    color: var(--color-text);
    font-weight: 600;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .page-header {
        padding: 3rem 0 2rem;
        margin-bottom: 3rem;
    }
    
    .page-header__title {
        font-size: 2.25rem;
    }
    
    .content-section {
        padding: 0 1.5rem 4rem;
    }
    
    .text-section {
        margin-bottom: 3rem;
        padding-bottom: 1.5rem;
    }
    
    .text-section h2 {
        font-size: 1.5rem;
    }
    
    .text-section h3 {
        font-size: 1.125rem;
        margin-top: 1.5rem;
    }
    
    .text-section h4 {
        font-size: 1.0625rem;
    }
    
    .text-section p,
    .text-section li {
        font-size: 1rem;
    }
    
    .text-section li {
        padding-left: 1.5rem;
    }
    
    .text-section li::before {
        left: 0.25rem;
    }
    
    .text-section blockquote {
        padding: 1rem 1.5rem;
        margin: 1.5rem 0;
    }
    
    .text-section table {
        font-size: 0.9375rem;
    }
    
    .text-section table th,
    .text-section table td {
        padding: 0.5rem 0.75rem;
    }
}

/* Print styles */
@media print {
    .page-header {
        border-bottom: 2px solid #000;
    }
    
    .text-section {
        page-break-inside: avoid;
    }
    
    .text-section a {
        text-decoration: none;
        color: inherit;
    }
    
    .text-section a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.875rem;
        color: #666;
    }
}