/* OnsStay Legal Pages Shortcode Styles */

.onsstay-legal-wrapper {
    font-family: 'Source Sans 3', sans-serif;
    color: #333;
    line-height: 1.6;
    max-width: 100%;
}

.onsstay-legal-wrapper h1,
.onsstay-legal-wrapper h2,
.onsstay-legal-wrapper h3,
.onsstay-legal-wrapper h4,
.onsstay-legal-wrapper h5,
.onsstay-legal-wrapper h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: #1C1C1C;
}

/* Hero Section */
.onsstay-hero {
    background: linear-gradient(135deg, #4D7787 0%, #5a8a9e 100%);
    color: white;
    padding: 3rem 2rem;
    margin-bottom: 2rem;
    border-radius: 8px;
}

.onsstay-hero h1 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.onsstay-hero .highlight {
    color: #DDCB9D;
}

.onsstay-hero p {
    font-size: 1.1rem;
    opacity: 0.95;
    margin-bottom: 0;
}

/* Content Layout */
.onsstay-content-wrapper {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.onsstay-sidebar {
    flex: 0 0 250px;
    position: sticky;
    top: 20px;
    height: fit-content;
}

.onsstay-main-content {
    flex: 1;
    min-width: 0;
}

/* Sidebar Navigation */
.onsstay-sidebar-nav {
    background-color: #F8F7F5;
    padding: 1.5rem;
    border-radius: 8px;
}

.onsstay-sidebar-nav h5 {
    color: #4D7787;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.onsstay-sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.onsstay-sidebar-nav li {
    margin-bottom: 0.5rem;
}

.onsstay-sidebar-nav a {
    color: #666;
    text-decoration: none;
    padding: 0.5rem 0 0.5rem 1rem;
    display: block;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.onsstay-sidebar-nav a:hover,
.onsstay-sidebar-nav a.active {
    color: #4D7787;
    border-left-color: #DDCB9D;
    background-color: rgba(221, 203, 157, 0.1);
}

/* Content Sections */
.onsstay-content-section {
    margin-bottom: 3rem;
}

.onsstay-content-section h2 {
    color: #4D7787;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #DDCB9D;
}

.onsstay-content-section h3 {
    color: #1C1C1C;
    font-size: 1.3rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.onsstay-content-section h4 {
    color: #4D7787;
    font-size: 1.1rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.onsstay-content-section p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.onsstay-content-section ul,
.onsstay-content-section ol {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.onsstay-content-section li {
    margin-bottom: 0.5rem;
    color: #555;
}

/* Info Boxes */
.onsstay-info-box {
    background-color: #F8F7F5;
    border-left: 4px solid #DDCB9D;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 4px;
}

.onsstay-info-box h4 {
    color: #4D7787;
    margin-bottom: 0.5rem;
    margin-top: 0;
}

.onsstay-info-box p {
    margin: 0;
    color: #555;
}

/* Policy Boxes */
.onsstay-policy-box {
    background-color: #FFFFFF;
    border: 1px solid #E0E0E0;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    transition: box-shadow 0.3s ease;
}

.onsstay-policy-box:hover {
    box-shadow: 0 4px 12px rgba(77, 119, 135, 0.1);
}

.onsstay-policy-box h4 {
    color: #4D7787;
    margin-bottom: 1rem;
    margin-top: 0;
}

.onsstay-policy-box p {
    color: #666;
    margin-bottom: 0.5rem;
}

.onsstay-policy-box strong {
    color: #4D7787;
}

/* Tables */
.onsstay-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background-color: white;
}

.onsstay-table thead {
    background-color: #4D7787;
    color: white;
}

.onsstay-table th {
    padding: 1rem;
    font-weight: 600;
    border: none;
    text-align: left;
}

.onsstay-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #E0E0E0;
}

.onsstay-table tbody tr:hover {
    background-color: #F8F7F5;
}

/* Contact Info */
.onsstay-contact-info {
    background-color: #F8F7F5;
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.onsstay-contact-info h4 {
    color: #4D7787;
    margin-bottom: 1.5rem;
    margin-top: 0;
}

.onsstay-contact-item {
    margin-bottom: 1.5rem;
}

.onsstay-contact-item strong {
    color: #4D7787;
    display: block;
    margin-bottom: 0.5rem;
}

.onsstay-contact-item a {
    color: #4D7787;
    text-decoration: none;
}

.onsstay-contact-item a:hover {
    text-decoration: underline;
}

/* Links */
.onsstay-legal-wrapper a {
    color: #4D7787;
    text-decoration: none;
}

.onsstay-legal-wrapper a:hover {
    color: #DDCB9D;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .onsstay-hero h1 {
        font-size: 1.8rem;
    }
    
    .onsstay-content-wrapper {
        flex-direction: column;
    }
    
    .onsstay-sidebar {
        position: static;
        flex: 1 1 auto;
        width: 100%;
    }
    
    .onsstay-content-section h2 {
        font-size: 1.5rem;
    }
}

/* Back to Top Button */
.onsstay-back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: none;
    z-index: 99;
    width: 50px;
    height: 50px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background-color: #4D7787;
    color: white;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.onsstay-back-to-top:hover {
    background-color: #DDCB9D;
    color: #1C1C1C;
}

.onsstay-back-to-top.show {
    display: block;
}

/* Accessibility */
.onsstay-legal-wrapper a:focus,
.onsstay-legal-wrapper button:focus {
    outline: 2px solid #DDCB9D;
    outline-offset: 2px;
}
